From a01b070c9599be7f2be4dfaa25dd9ff01efe8a57 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Sat, 4 Jan 2020 17:26:55 +0100 Subject: openpgp: Change KeyIter::key_flags to not require an owned KeyFlags. - Instead of taking a `KeyFlags`, change `KeyIter::key_flags` to take a `Borrow`. - Update callers to pass a reference instead of cloning. --- tool/src/commands/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool') diff --git a/tool/src/commands/mod.rs b/tool/src/commands/mod.rs index b4ea9037..cde1e664 100644 --- a/tool/src/commands/mod.rs +++ b/tool/src/commands/mod.rs @@ -112,8 +112,8 @@ pub fn encrypt(mapping: &mut store::Mapping, let mut recipient_subkeys: Vec = Vec::new(); for cert in certs.iter() { let mut count = 0; - for key in cert.keys().alive().revoked(false). - key_flags(mode.clone()).map(|ka| ka.key()) + for key in cert.keys().alive().revoked(false) + .key_flags(&mode).map(|ka| ka.key()) { recipient_subkeys.push(key.into()); count += 1; -- cgit v1.2.3