diff options
author | Aleksey Kladov <[email protected]> | 2020-02-14 18:13:26 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-02-14 18:13:26 +0000 |
commit | 2ae71a9ed0df471b8982b847873ab5440463d78d (patch) | |
tree | ea14351ff9ad8c3a357965b2aac402fd95f26983 /xtask | |
parent | 5acb467894053cb0342eb6ded4d162b4a6912483 (diff) |
Simplify
Diffstat (limited to 'xtask')
-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")?; |