Skip to content

Commit 9acc0dc

Browse files
committed
Address #[warn(clippy::redundant_pattern_matching)]
Signed-off-by: hi-rustin <[email protected]>
1 parent 831bf1e commit 9acc0dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/self_update/shell.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ impl UnixShell for Zsh {
175175
fn does_exist(&self) -> bool {
176176
// zsh has to either be the shell or be callable for zsh setup.
177177
matches!(process().var("SHELL"), Ok(sh) if sh.contains("zsh"))
178-
|| matches!(utils::find_cmd(&["zsh"]), Some(_))
178+
|| utils::find_cmd(&["zsh"]).is_some()
179179
}
180180

181181
fn rcfiles(&self) -> Vec<PathBuf> {

0 commit comments

Comments
 (0)