mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 21:35:20 +00:00
Avoid string allocation
This commit is contained in:
parent
e3ce88f6f2
commit
6b1f0057f2
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ impl WorkspaceBuildData {
|
|||
Message::CompilerArtifact(message) => {
|
||||
progress(format!("metadata {}", message.target.name));
|
||||
|
||||
if message.target.kind.contains(&"proc-macro".to_string()) {
|
||||
if message.target.kind.iter().any(|k| k == "proc-macro") {
|
||||
let package_id = message.package_id;
|
||||
// Skip rmeta file
|
||||
if let Some(filename) =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue