Skip to content

Commit

Permalink
Fix unnecessary_find_map unnecessary_filter_map lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed Sep 7, 2024
1 parent 4832689 commit 4531875
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/available.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ pub(crate) fn get_packages(

let r: BTreeSet<_> = ps
.iter()
.filter_map(|(attr, a)| {
Some(Package {
.map(|(attr, a)| {
Package {
attribute: attr.clone(),
name: a.name.clone(),
pname: a.pname.clone(),
version: a.version.clone(),
})
}
})
.collect();

Expand Down

0 comments on commit 4531875

Please sign in to comment.