summaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/src/commands/mod.rs4
1 files changed, 2 insertions, 2 deletions
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<Recipient> = 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;