Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/proc-macro-srv/proc-macro-test/build.rs')
-rw-r--r--crates/proc-macro-srv/proc-macro-test/build.rs12
1 files changed, 7 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 e6903fb8d4..ff62980e4f 100644
--- a/crates/proc-macro-srv/proc-macro-test/build.rs
+++ b/crates/proc-macro-srv/proc-macro-test/build.rs
@@ -100,7 +100,8 @@ fn main() {
.current_dir(&staging_dir)
.args(["pkgid", name])
.output()
- .unwrap().stdout,
+ .unwrap()
+ .stdout,
)
.unwrap();
let pkgid = pkgid.trim();
@@ -108,10 +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]));
}
}
}