Avoid string allocation

This commit is contained in:
Laurențiu Nicola 2021-06-18 14:44:36 +03:00
parent e3ce88f6f2
commit 6b1f0057f2

View File

@ -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) =