diff options
Diffstat (limited to 'openpgp/examples/encrypt-for.rs')
-rw-r--r-- | openpgp/examples/encrypt-for.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/openpgp/examples/encrypt-for.rs b/openpgp/examples/encrypt-for.rs index d31f2cc9..a7701770 100644 --- a/openpgp/examples/encrypt-for.rs +++ b/openpgp/examples/encrypt-for.rs @@ -37,15 +37,13 @@ fn main() { .expect("Failed to read key") }).collect(); - // Build a vector of recipients to hand to Encryptor. let recipients = certs.iter() .flat_map(|cert| { cert.keys() .with_policy(p, None).alive().revoked(false).key_flags(&mode) }) - .map(|ka| ka.key()) - .collect::<Vec<_>>(); + .map(|ka| ka.key()); // Compose a writer stack corresponding to the output format and // packet structure we want. First, we want the output to be |