Skip to content

Commit 2ae71a9

Browse files
committed
Simplify
1 parent 5acb467 commit 2ae71a9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

xtask/src/lib.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,8 @@ fn install_clippy() -> Result<()> {
109109

110110
pub fn run_fuzzer() -> Result<()> {
111111
let _d = pushd("./crates/ra_syntax");
112-
match run!("cargo fuzz --help") {
113-
Ok(_) => (),
114-
_ => {
115-
run!("cargo install cargo-fuzz")?;
116-
}
112+
if run!("cargo fuzz --help").is_err() {
113+
run!("cargo install cargo-fuzz")?;
117114
};
118115

119116
run!("rustup run nightly -- cargo fuzz run parser")?;

0 commit comments

Comments
 (0)