Skip to content

Commit

Permalink
Apply clippy suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Oct 11, 2023
1 parent 75f06bf commit 10de7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/self_update/shell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl UnixShell for Fish {
fn does_exist(&self) -> bool {
// fish has to either be the shell or be callable for fish setup.
matches!(process().var("SHELL"), Ok(sh) if sh.contains("fish"))
|| matches!(utils::find_cmd(&["fish"]), Some(_))
|| utils::find_cmd(&["fish"]).is_some()
}

// > "$XDG_CONFIG_HOME/fish/conf.d" (or "~/.config/fish/conf.d" if that variable is unset) for the user
Expand Down

0 comments on commit 10de7bf

Please sign in to comment.