Skip to content

Commit fa2336d

Browse files
committed
Apply clippy suggestions
1 parent 104322c commit fa2336d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/self_update/shell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ impl UnixShell for Fish {
212212
fn does_exist(&self) -> bool {
213213
// fish has to either be the shell or be callable for fish setup.
214214
matches!(process().var("SHELL"), Ok(sh) if sh.contains("fish"))
215-
|| matches!(utils::find_cmd(&["fish"]), Some(_))
215+
|| utils::find_cmd(&["fish"]).is_some()
216216
}
217217

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

0 commit comments

Comments
 (0)