Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
lnicola committed Jan 21, 2024
1 parent 0ea0565 commit 5607714
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/proc-macro-srv/proc-macro-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ fn main() {
.current_dir(&staging_dir)
.args(["pkgid", name])
.output()
.unwrap().stdout,
.unwrap()
.stdout,
)
.unwrap();
let pkgid = pkgid.trim();
Expand All @@ -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]));
}
}
Expand Down

0 comments on commit 5607714

Please sign in to comment.