mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-10 12:51:15 -03:00
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:
committed by
danielrainer
parent
a4b6348315
commit
ebc32adc09
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user