about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohann Hemmann <johann.hemmann@code.berlin>2024-01-22 00:08:55 +0100
committerJohann Hemmann <johann.hemmann@code.berlin>2024-01-30 14:44:44 +0100
commit75a42f1a09fec0e4f31cbfa31056a3decc4c961e (patch)
treef4cf0970406bd1cd2cf26a089f8eb24672338653
parent11b401d0b4a743ed1a30791d351df447d691823f (diff)
downloadrust-75a42f1a09fec0e4f31cbfa31056a3decc4c961e.tar.gz
rust-75a42f1a09fec0e4f31cbfa31056a3decc4c961e.zip
collapsible_if
-rw-r--r--crates/proc-macro-srv/proc-macro-test/build.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crates/proc-macro-srv/proc-macro-test/build.rs b/crates/proc-macro-srv/proc-macro-test/build.rs
index c9b605a8087..ff62980e4ff 100644
--- a/crates/proc-macro-srv/proc-macro-test/build.rs
+++ b/crates/proc-macro-srv/proc-macro-test/build.rs
@@ -109,11 +109,11 @@ fn main() {
     let mut artifact_path = None;
     for message in Message::parse_stream(output.stdout.as_slice()) {
         if let Message::CompilerArtifact(artifact) = message.unwrap() {
-            if artifact.target.kind.contains(&"proc-macro".to_string()) {
-                if artifact.package_id.repr.starts_with(&repr) || artifact.package_id.repr == pkgid
-                {
-                    artifact_path = Some(PathBuf::from(&artifact.filenames[0]));
-                }
+            if artifact.target.kind.contains(&"proc-macro".to_string())
+                && (artifact.package_id.repr.starts_with(&repr)
+                    || artifact.package_id.repr == pkgid)
+            {
+                artifact_path = Some(PathBuf::from(&artifact.filenames[0]));
             }
         }
     }