diff options
Diffstat (limited to 'ipc/examples/gpg-agent-sign.rs')
-rw-r--r-- | ipc/examples/gpg-agent-sign.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ipc/examples/gpg-agent-sign.rs b/ipc/examples/gpg-agent-sign.rs index e0cfeb98..dfc3f304 100644 --- a/ipc/examples/gpg-agent-sign.rs +++ b/ipc/examples/gpg-agent-sign.rs @@ -39,8 +39,8 @@ fn main() { // Construct a KeyPair for every signing-capable (sub)key. let mut signers = certs.iter().flat_map(|cert| { - cert.keys_valid().for_signing().filter_map(|(_, _, key)| { - KeyPair::new(&ctx, key).ok() + cert.keys_valid().for_signing().filter_map(|ka| { + KeyPair::new(&ctx, ka.key()).ok() }) }).collect::<Vec<KeyPair>>(); |