summaryrefslogtreecommitdiffstats
path: root/ipc/examples/gpg-agent-sign.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/examples/gpg-agent-sign.rs')
-rw-r--r--ipc/examples/gpg-agent-sign.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/examples/gpg-agent-sign.rs b/ipc/examples/gpg-agent-sign.rs
index 43435b46..e7dd6e53 100644
--- a/ipc/examples/gpg-agent-sign.rs
+++ b/ipc/examples/gpg-agent-sign.rs
@@ -41,11 +41,11 @@ fn main() {
// Construct a KeyPair for every signing-capable (sub)key.
let mut keypairs = tpks.iter().flat_map(|tpk| tpk.keys_valid().signing_capable().filter_map(|(_, _, key)| {
KeyPair::new(&ctx, key).ok()
- })).collect::<Vec<KeyPair>>();
+ })).collect::<Vec<KeyPair<_>>>();
// Well, this is awkward...
let signers = keypairs.iter_mut()
- .map(|s| -> &mut dyn openpgp::crypto::Signer { s })
+ .map(|s| -> &mut dyn openpgp::crypto::Signer<_> { s })
.collect();
// Compose a writer stack corresponding to the output format and