Skip to content

Commit

Permalink
Resolve clippy::unnecessary_map_or warning (#2904)
Browse files Browse the repository at this point in the history
  • Loading branch information
brodycj authored Jan 12, 2025
1 parent 036957b commit b1bfda0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion futures/tests/no-std/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ fn is_nightly() -> bool {
env::var_os("RUSTC")
.and_then(|rustc| Command::new(rustc).arg("--version").output().ok())
.and_then(|output| String::from_utf8(output.stdout).ok())
.map_or(false, |version| version.contains("nightly") || version.contains("dev"))
.is_some_and(|version| version.contains("nightly") || version.contains("dev"))
}

0 comments on commit b1bfda0

Please sign in to comment.