Skip to content

Commit

Permalink
thanks clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Sep 13, 2021
1 parent 798b650 commit d15fded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cargo-smart-release/src/command/release/manifest.rs
Expand Up @@ -155,7 +155,7 @@ fn collect_directly_dependent_packages<'a>(
if locks_by_manifest_path.contains_key(&package_to_fix.manifest_path) {
if let Some(previous_version) = packages_to_fix
.iter()
.find_map(|(p, v)| (&p.id == &package_to_fix.id && &*v < &new_version).then(|| v))
.find_map(|(p, v)| (p.id == package_to_fix.id && *v < new_version).then(|| v))
{
log::warn!(
"BUG: we encountered package {} again, and would need to update its version {:?} to {:?}",
Expand Down

0 comments on commit d15fded

Please sign in to comment.