Skip to content

Commit

Permalink
lint: appease Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
fosskers committed Nov 15, 2023
1 parent dd33334 commit ac3f9bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/aura-pm/src/command/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub(crate) fn downgrade(
let mut tarballs: HashMap<&str, Vec<PkgPath>> = HashMap::new();
for pp in aura_core::cache::package_paths(caches) {
if let Some(p) = packages.iter().find(|p| p == &&pp.as_package().name) {
let paths = tarballs.entry(p).or_insert_with(Vec::new);
let paths = tarballs.entry(p).or_default();
paths.push(pp);
}
}
Expand Down

0 comments on commit ac3f9bb

Please sign in to comment.