mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
collapsible_if
This commit is contained in:
parent
11b401d0b4
commit
75a42f1a09
1 changed files with 5 additions and 5 deletions
|
@ -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]));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue