Skip to content

Commit

Permalink
style: Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Oct 12, 2023
1 parent d45ab32 commit f9eed30
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bin/upgrade/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,11 @@ fn exec(args: UpgradeArgs) -> CargoResult<()> {
//
// Reusing updates (resolve_ws) so we know what lock_version to reference
for (name, (req, precise)) in &precise_deps {
#[allow(clippy::unnecessary_lazy_evaluations)] // requires 1.62
for lock_version in locked
.iter()
.filter(|p| p.name == **name)
.map(|p| &p.version)
.filter_map(|v| req.matches(v).then(|| v))
.filter(|v| req.matches(v))
{
let mut cmd = std::process::Command::new("cargo");
cmd.arg("update");
Expand Down

0 comments on commit f9eed30

Please sign in to comment.