Skip to content

Commit aceaa51

Browse files
committed
clippy
1 parent c733a58 commit aceaa51

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/rust_project.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -494,11 +494,11 @@ impl PackageGraph {
494494
.targets
495495
.iter()
496496
.enumerate()
497-
.filter_map(|(i, target)| {
498-
matches!(TargetKind::new(&target.kind), TargetKind::Lib)
499-
// I *think* this is the right way to handle target names in this
500-
// context...
501-
.then(|| (crates.len() + i, target.name.clone().replace('-', "_")))
497+
.filter(|(_, target)| matches!(TargetKind::new(&target.kind), TargetKind::Lib))
498+
.map(|(i, target)| {
499+
// I *think* this is the right way to handle target names in this
500+
// context...
501+
(crates.len() + i, target.name.clone().replace('-', "_"))
502502
})
503503
.collect();
504504

0 commit comments

Comments
 (0)