Skip to content

Commit

Permalink
Migrate to enum instead of str
Browse files Browse the repository at this point in the history
  • Loading branch information
cmichi committed Nov 27, 2024
1 parent 14b9e49 commit b1e5588
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/build/src/crate_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1e5588

Please sign in to comment.