mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-19 01:50:32 +00:00
Bump cargo_metadata
This commit is contained in:
parent
63e8bdb8a2
commit
b20708f6ee
9 changed files with 47 additions and 37 deletions
|
@ -8,6 +8,7 @@ use test_utils::assert_eq_text;
|
|||
|
||||
mod fixtures {
|
||||
use cargo_metadata::Message;
|
||||
use std::path::PathBuf;
|
||||
use std::process::Command;
|
||||
|
||||
// Use current project metadata to get the proc-macro dylib path
|
||||
|
@ -24,7 +25,7 @@ mod fixtures {
|
|||
if artifact.target.kind.contains(&"proc-macro".to_string()) {
|
||||
let repr = format!("{} {}", crate_name, version);
|
||||
if artifact.package_id.repr.starts_with(&repr) {
|
||||
return artifact.filenames[0].clone();
|
||||
return PathBuf::from(&artifact.filenames[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue