We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
#[warn(clippy::redundant_pattern_matching)]
1 parent 831bf1e commit 9acc0dcCopy full SHA for 9acc0dc
src/cli/self_update/shell.rs
@@ -175,7 +175,7 @@ impl UnixShell for Zsh {
175
fn does_exist(&self) -> bool {
176
// zsh has to either be the shell or be callable for zsh setup.
177
matches!(process().var("SHELL"), Ok(sh) if sh.contains("zsh"))
178
- || matches!(utils::find_cmd(&["zsh"]), Some(_))
+ || utils::find_cmd(&["zsh"]).is_some()
179
}
180
181
fn rcfiles(&self) -> Vec<PathBuf> {
0 commit comments