We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
clippy
1 parent 104322c commit fa2336dCopy full SHA for fa2336d
src/cli/self_update/shell.rs
@@ -212,7 +212,7 @@ impl UnixShell for Fish {
212
fn does_exist(&self) -> bool {
213
// fish has to either be the shell or be callable for fish setup.
214
matches!(process().var("SHELL"), Ok(sh) if sh.contains("fish"))
215
- || matches!(utils::find_cmd(&["fish"]), Some(_))
+ || utils::find_cmd(&["fish"]).is_some()
216
}
217
218
// > "$XDG_CONFIG_HOME/fish/conf.d" (or "~/.config/fish/conf.d" if that variable is unset) for the user
0 commit comments