Skip to content

Commit 895d0df

Browse files
committed
collapsible_if
1 parent d410d4a commit 895d0df

File tree

1 file changed

+5
-5
lines changed
  • crates/proc-macro-srv/proc-macro-test

1 file changed

+5
-5
lines changed

crates/proc-macro-srv/proc-macro-test/build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ fn main() {
109109
let mut artifact_path = None;
110110
for message in Message::parse_stream(output.stdout.as_slice()) {
111111
if let Message::CompilerArtifact(artifact) = message.unwrap() {
112-
if artifact.target.kind.contains(&"proc-macro".to_string()) {
113-
if artifact.package_id.repr.starts_with(&repr) || artifact.package_id.repr == pkgid
114-
{
115-
artifact_path = Some(PathBuf::from(&artifact.filenames[0]));
116-
}
112+
if artifact.target.kind.contains(&"proc-macro".to_string())
113+
&& (artifact.package_id.repr.starts_with(&repr)
114+
|| artifact.package_id.repr == pkgid)
115+
{
116+
artifact_path = Some(PathBuf::from(&artifact.filenames[0]));
117117
}
118118
}
119119
}

0 commit comments

Comments
 (0)