Avoid string allocation
This commit is contained in:
parent
e3ce88f6f2
commit
6b1f0057f2
@ -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…
x
Reference in New Issue
Block a user