From b1e5588ee16950a3a2507e585adddba0f8955e9f Mon Sep 17 00:00:00 2001 From: Michael Mueller Date: Wed, 27 Nov 2024 17:00:41 +0100 Subject: [PATCH] Migrate to enum instead of str --- crates/build/src/crate_metadata.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/build/src/crate_metadata.rs b/crates/build/src/crate_metadata.rs index 3cc66cad8..704993abb 100644 --- a/crates/build/src/crate_metadata.rs +++ b/crates/build/src/crate_metadata.rs @@ -78,7 +78,7 @@ impl CrateMetadata { if let Some(lib_name) = &root_package .targets .iter() - .find(|target| target.kind.iter().any(|f| f.eq(&TargetKind::Lib))) + .find(|target| target.kind.iter().any(|f| *f == TargetKind::Lib)) { if lib_name.name != root_package.name { // warn user if they still specify a lib name different from the