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 Jul 29, 2022
1 parent 5650a22 commit 07ba3b7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/bin/upgrade/upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ impl Dep {
return old_version_req.matches(&latest_version);
}
}
return true;
true
}

fn locked_version(&self) -> &str {
Expand All @@ -477,10 +477,8 @@ impl Dep {
fn is_locked_latest(&self) -> bool {
if self.locked_version.is_none() || self.latest_version.is_none() {
true
} else if self.locked_version != self.latest_version {
false
} else {
true
self.locked_version == self.latest_version
}
}

Expand Down Expand Up @@ -681,7 +679,7 @@ fn print_upgrade(deps: Vec<Dep>, verbose: bool) -> CargoResult<()> {
for dep in uninteresting {
categorize
.entry(dep.long_reason())
.or_insert_with(|| BTreeSet::new())
.or_insert_with(BTreeSet::new)
.insert(dep.name);
}
let mut note = "Re-run with `--verbose` to show all dependencies".to_owned();
Expand Down

0 comments on commit 07ba3b7

Please sign in to comment.