diff options
Diffstat (limited to 'openpgp/examples/sign.rs')
-rw-r--r-- | openpgp/examples/sign.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/openpgp/examples/sign.rs b/openpgp/examples/sign.rs index cfd9c136..bdb29c4c 100644 --- a/openpgp/examples/sign.rs +++ b/openpgp/examples/sign.rs @@ -38,7 +38,7 @@ fn main() { .expect("decryption failed"); } n += 1; - key.into_keypair().unwrap() + key.mark_parts_secret().into_keypair().unwrap() }); } @@ -59,7 +59,9 @@ fn main() { // Now, create a signer that emits a signature. let signer = Signer::new( message, - keys.iter_mut().map(|s| -> &mut dyn crypto::Signer { s }).collect(), + keys.iter_mut() + .map(|s| -> &mut dyn crypto::Signer<_> { s }) + .collect(), None) .expect("Failed to create signer"); |