From b3ba97146f534ac5cf67db7f72d8a633112d0a18 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Thu, 19 Dec 2019 21:47:19 +0100 Subject: openpgp: Change KeyIter to return a struct instead of a tuple. - A tuple is just an unnamed, inflexible struct. Use a struct instead. - Fixes #400. --- ipc/examples/gpg-agent-sign.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipc/examples/gpg-agent-sign.rs') 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::>(); -- cgit v1.2.3