diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-02-19 16:16:19 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-02-19 16:19:41 +0100 |
commit | 77126481d2ce21d70869004d784ee0de6b5062bf (patch) | |
tree | 4a04182e21905a78259ecb9ab10f3ae205bb40ac /examples/guide-exploring-openpgp.rs | |
parent | 864bea75d9ca795d032cf145015068756fdf3799 (diff) |
openpgp: Return &[Signature] from TPK accessors.
- Fixes #196.
Diffstat (limited to 'examples/guide-exploring-openpgp.rs')
-rw-r--r-- | examples/guide-exploring-openpgp.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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()); } } |