]> git.lizzy.rs Git - rust.git/blobdiff - src/bootstrap/tool.rs
Vertical list of tools to check
[rust.git] / src / bootstrap / tool.rs
index 23b3f5a0826ecab3837d33527d637d2c8cbd3f47..a85594d4d3d447219921bad97a525c0134c2d6c2 100644 (file)
@@ -118,8 +118,13 @@ fn run(self, builder: &Builder) -> Option<PathBuf> {
         let mut duplicates = Vec::new();
         let is_expected = compile::stream_cargo(builder, &mut cargo, &mut |msg| {
             // Only care about big things like the RLS/Cargo for now
-            if tool != "rls" && tool != "cargo" && tool != "clippy-driver" {
-                return
+            match tool {
+                | "rls"
+                | "cargo"
+                | "clippy-driver"
+                => {}
+
+                _ => return,
             }
             let (id, features, filenames) = match msg {
                 compile::CargoMessage::CompilerArtifact {