diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-01-20 10:32:51 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-01-20 10:34:40 +0100 |
commit | a1230b3a6c31d77fff4626814de4a681e2f2a3a0 (patch) | |
tree | 58ec2fd279c1eb57c022390f04377b7491f8ee27 /examples | |
parent | 312ad42659b6b16983981dfbc891972cd0ff9e01 (diff) |
openpgp: Use the new framework for Cert::userid.
- Fixes #414.
Diffstat (limited to 'examples')
-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 004c9899..31c6aa61 100644 --- a/examples/guide-exploring-openpgp.rs +++ b/examples/guide-exploring-openpgp.rs @@ -52,11 +52,11 @@ fn main() { println!("Fingerprint: {}", cert.fingerprint()); // List userids. - for (i, u) in cert.userids().enumerate() { + for (i, ca) in cert.userids().policy(None).enumerate() { println!("{}: UID: {}, {} self-signature(s), {} certification(s)", - i, u.userid(), - u.self_signatures().len(), - u.certifications().len()); + i, ca.userid(), + ca.component().self_signatures().len(), + ca.component().certifications().len()); } // List subkeys. |