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