From ebc32adc09489866e0040eddfa5e20375292d8f5 Mon Sep 17 00:00:00 2001 From: Daniel Rainer Date: Sun, 19 Apr 2026 01:12:26 +0200 Subject: [PATCH] clippy: fix map_unwrap_or lint https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#map_unwrap_or --- src/common.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.rs b/src/common.rs index 41fe840d5..3ec51a397 100644 --- a/src/common.rs +++ b/src/common.rs @@ -286,7 +286,7 @@ pub fn is_windows_subsystem_for_linux(v: WSL) -> bool { Some(WSL::V1) }); - wsl.map(|wsl| v == WSL::Any || wsl == v).unwrap_or(false) + wsl.is_some_and(|wsl| v == WSL::Any || wsl == v) } /// Test if the given char is valid in a variable name.