diff options
author | Laurențiu Nicola <[email protected]> | 2021-06-18 12:44:36 +0100 |
---|---|---|
committer | Laurențiu Nicola <[email protected]> | 2021-06-18 12:46:18 +0100 |
commit | 6b1f0057f2dbe48f1c59c8938957daf158e30823 (patch) | |
tree | c0e47ffece8ca23643c79d08fe9eb6c09a00498d | |
parent | e3ce88f6f25901b1d33fbc5f931a9d8f90b9e2b8 (diff) |
Avoid string allocation
-rw-r--r-- | crates/project_model/src/build_data.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
229 | Message::CompilerArtifact(message) => { | 229 | Message::CompilerArtifact(message) => { |
230 | progress(format!("metadata {}", message.target.name)); | 230 | progress(format!("metadata {}", message.target.name)); |
231 | 231 | ||
232 | if message.target.kind.contains(&"proc-macro".to_string()) { | 232 | if message.target.kind.iter().any(|k| k == "proc-macro") { |
233 | let package_id = message.package_id; | 233 | let package_id = message.package_id; |
234 | // Skip rmeta file | 234 | // Skip rmeta file |
235 | if let Some(filename) = | 235 | if let Some(filename) = |