Skip to content

Commit

Permalink
qa: Clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentdephily committed Sep 22, 2023
1 parent dc3de04 commit 3c42d08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,7 @@ pub fn cmd_accuracy(args: &ArgMatches) -> Result<bool, Error> {
&[&FmtDur(pred)],
&[&st.cnt, &format!("{err:.1}%")]])
}
let errs =
pkg_errs.entry(p.ebuild().to_owned()).or_insert_with(Vec::new);
let errs = pkg_errs.entry(p.ebuild().to_owned()).or_default();
errs.push(err);
},
}
Expand Down

0 comments on commit 3c42d08

Please sign in to comment.