Skip to content

Commit

Permalink
Allow clippy::option_env_unwrap
Browse files Browse the repository at this point in the history
clippy 0.1.73 (680cdf8168a 2023-08-21)
  • Loading branch information
tatsuya6502 committed Aug 22, 2023
1 parent a0c6c23 commit 9e35a47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common/concurrent/entry_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,10 @@ mod test {

use TargetArch::*;

#[allow(clippy::option_env_unwrap)]
// e.g. "1.64"
let ver = option_env!("RUSTC_SEMVER").expect("RUSTC_SEMVER env var not set");
let ver =
option_env!("RUSTC_SEMVER").expect("RUSTC_SEMVER env var was not set at compile time");
let is_quanta_enabled = cfg!(feature = "quanta");
let arch = if cfg!(target_os = "linux") {
if cfg!(target_pointer_width = "64") {
Expand Down

0 comments on commit 9e35a47

Please sign in to comment.