From 77126481d2ce21d70869004d784ee0de6b5062bf Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Tue, 19 Feb 2019 16:16:19 +0100 Subject: openpgp: Return &[Signature] from TPK accessors. - Fixes #196. --- examples/guide-exploring-openpgp.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/guide-exploring-openpgp.rs b/examples/guide-exploring-openpgp.rs index 409475ef..358c1922 100644 --- a/examples/guide-exploring-openpgp.rs +++ b/examples/guide-exploring-openpgp.rs @@ -55,15 +55,15 @@ fn main() { for (i, u) in tpk.userids().enumerate() { println!("{}: UID: {}, {} self-signature(s), {} certification(s)", i, u.userid(), - u.selfsigs().count(), - u.certifications().count()); + u.selfsigs().len(), + u.certifications().len()); } // List subkeys. for (i, s) in tpk.subkeys().enumerate() { println!("{}: Fingerprint: {}, {} self-signature(s), {} certification(s)", i, s.subkey().fingerprint(), - s.selfsigs().count(), - s.certifications().count()); + s.selfsigs().len(), + s.certifications().len()); } } -- cgit v1.2.3