Skip to content

Commit

Permalink
clippy feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderkjall committed Oct 6, 2023
1 parent 7692bcb commit 02e83c3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,12 @@ impl PasswordStore {
let keys = self
.all_recipients()?
.into_iter()
.map(|s| format!("0x{}, ", s.key_id))
.collect::<String>();
.fold(String::new(), |mut acc, r| {
use std::fmt::Write;
let _ = write!(acc, ", 0x{}", r.key_id);
acc
});

let message = format!("Reencrypt password store with new GPG ids {keys}");

self.add_and_commit(&names, &message)?;
Expand Down

0 comments on commit 02e83c3

Please sign in to comment.