Skip to content

Commit 6b1f005

Browse files
committed
Avoid string allocation
1 parent e3ce88f commit 6b1f005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/project_model/src/build_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ impl WorkspaceBuildData {
229229
Message::CompilerArtifact(message) => {
230230
progress(format!("metadata {}", message.target.name));
231231

232-
if message.target.kind.contains(&"proc-macro".to_string()) {
232+
if message.target.kind.iter().any(|k| k == "proc-macro") {
233233
let package_id = message.package_id;
234234
// Skip rmeta file
235235
if let Some(filename) =

0 commit comments

Comments
 (0)