Skip to content

Commit b1bfda0

Browse files
authored
Resolve clippy::unnecessary_map_or warning (#2904)
1 parent 036957b commit b1bfda0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

futures/tests/no-std/build.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ fn is_nightly() -> bool {
1111
env::var_os("RUSTC")
1212
.and_then(|rustc| Command::new(rustc).arg("--version").output().ok())
1313
.and_then(|output| String::from_utf8(output.stdout).ok())
14-
.map_or(false, |version| version.contains("nightly") || version.contains("dev"))
14+
.is_some_and(|version| version.contains("nightly") || version.contains("dev"))
1515
}

0 commit comments

Comments
 (0)