From b1bfda0ee400df16406f7c3a5ff630454e920d95 Mon Sep 17 00:00:00 2001 From: "@brodycj - C. Jonathan Brody" Date: Sun, 12 Jan 2025 10:39:48 -0500 Subject: [PATCH] Resolve clippy::unnecessary_map_or warning (#2904) --- futures/tests/no-std/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/futures/tests/no-std/build.rs b/futures/tests/no-std/build.rs index ba79f203f..73d2a7b52 100644 --- a/futures/tests/no-std/build.rs +++ b/futures/tests/no-std/build.rs @@ -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")) }