clippy: fix map_unwrap_or lint

https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#map_unwrap_or
This commit is contained in:
Daniel Rainer
2026-04-19 01:12:26 +02:00
committed by danielrainer
parent a4b6348315
commit ebc32adc09

View File

@@ -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.