diff options
-rw-r--r-- | xtask/src/lib.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xtask/src/lib.rs b/xtask/src/lib.rs index 25b64301c..2bcd76d60 100644 --- a/xtask/src/lib.rs +++ b/xtask/src/lib.rs | |||
@@ -109,11 +109,8 @@ fn install_clippy() -> Result<()> { | |||
109 | 109 | ||
110 | pub fn run_fuzzer() -> Result<()> { | 110 | pub fn run_fuzzer() -> Result<()> { |
111 | let _d = pushd("./crates/ra_syntax"); | 111 | let _d = pushd("./crates/ra_syntax"); |
112 | match run!("cargo fuzz --help") { | 112 | if run!("cargo fuzz --help").is_err() { |
113 | Ok(_) => (), | 113 | run!("cargo install cargo-fuzz")?; |
114 | _ => { | ||
115 | run!("cargo install cargo-fuzz")?; | ||
116 | } | ||
117 | }; | 114 | }; |
118 | 115 | ||
119 | run!("rustup run nightly -- cargo fuzz run parser")?; | 116 | run!("rustup run nightly -- cargo fuzz run parser")?; |