diff options
| author | Laurențiu Nicola <lnicola@dend.ro> | 2024-01-21 21:16:53 +0200 |
|---|---|---|
| committer | Laurențiu Nicola <lnicola@dend.ro> | 2024-01-21 21:16:53 +0200 |
| commit | 56077149df0f82a064837fe703d2ea7614783bf9 (patch) | |
| tree | 06bc1b2ae89fbdd802d928388907f31943d7f62b | |
| parent | 0ea056552a014a09b7aed40358f05c0676460af5 (diff) | |
| download | rust-56077149df0f82a064837fe703d2ea7614783bf9.tar.gz rust-56077149df0f82a064837fe703d2ea7614783bf9.zip | |
Format code
| -rw-r--r-- | crates/proc-macro-srv/proc-macro-test/build.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/proc-macro-srv/proc-macro-test/build.rs b/crates/proc-macro-srv/proc-macro-test/build.rs index e6903fb8d4a..c9b605a8087 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(); @@ -109,7 +110,8 @@ fn main() { 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 { + if artifact.package_id.repr.starts_with(&repr) || artifact.package_id.repr == pkgid + { artifact_path = Some(PathBuf::from(&artifact.filenames[0])); } } |
