My code looked like this
rust
match Command::new(&binary)
.output()
{
Ok(_) => true,
Err(_) => false,
}
I would expect the if_let_redundant_pattern_matching lint to trigger here and suggest way more simple
rust
Command::new(&binary)
.output().is_ok()
clippy 0.0.211
I'd like to work on this!
Most helpful comment
I'd like to work on this!