From 6b1f0057f2dbe48f1c59c8938957daf158e30823 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauren=C8=9Biu=20Nicola?= Date: Fri, 18 Jun 2021 14:44:36 +0300 Subject: Avoid string allocation --- crates/project_model/src/build_data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/project_model/src') diff --git a/crates/project_model/src/build_data.rs b/crates/project_model/src/build_data.rs index a76f25a8c..45bbb08dc 100644 --- a/crates/project_model/src/build_data.rs +++ b/crates/project_model/src/build_data.rs @@ -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) = -- cgit v1.2.3