summaryrefslogtreecommitdiffstats
path: root/openpgp/examples
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-01-04 17:26:55 +0100
committerNeal H. Walfield <neal@pep.foundation>2020-01-04 17:26:55 +0100
commita01b070c9599be7f2be4dfaa25dd9ff01efe8a57 (patch)
treedfc18bcda1c076e02736709df5c0c8db6b13b844 /openpgp/examples
parent81e8f7869ea40f0ca02eef16ced70b8339eca7c3 (diff)
openpgp: Change KeyIter::key_flags to not require an owned KeyFlags.
- Instead of taking a `KeyFlags`, change `KeyIter::key_flags` to take a `Borrow<KeyFlags>`. - Update callers to pass a reference instead of cloning.
Diffstat (limited to 'openpgp/examples')
-rw-r--r--openpgp/examples/encrypt-for.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/examples/encrypt-for.rs b/openpgp/examples/encrypt-for.rs
index 93eba5b5..c76c7a1b 100644
--- a/openpgp/examples/encrypt-for.rs
+++ b/openpgp/examples/encrypt-for.rs
@@ -38,7 +38,7 @@ fn main() {
let mut recipients =
certs.iter()
.flat_map(|cert| {
- cert.keys().alive().revoked(false).key_flags(mode.clone())
+ cert.keys().alive().revoked(false).key_flags(&mode)
})
.map(|ka| ka.key().into())
.collect::<Vec<_>>();