diff options
author | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-12-15 11:08:38 +0100 |
---|---|---|
committer | Wiktor Kwapisiewicz <wiktor@metacode.biz> | 2020-12-15 11:08:38 +0100 |
commit | 4df9befdb10cc336a9df49b65fdfef659296aa61 (patch) | |
tree | 62f5d97a982293199a2c396b838c388983c2e76c /openpgp/src/cert/builder.rs | |
parent | c31ceb8dab94d2ea08879e36ad450547136ca2e1 (diff) |
openpgp: Make ComponentAmalgamation return iterator for signatures.
- Adjust `self_signatures`, `certifications`, `self_revocations` and
`other_revocations` to return `impl Iterator` over the signatures.
- Adjust all call-sites including doc tests.
- Adjust downstream projects (sq, autocrypt).
Diffstat (limited to 'openpgp/src/cert/builder.rs')
-rw-r--r-- | openpgp/src/cert/builder.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openpgp/src/cert/builder.rs b/openpgp/src/cert/builder.rs index 627bd4f0..7a50ac66 100644 --- a/openpgp/src/cert/builder.rs +++ b/openpgp/src/cert/builder.rs @@ -342,7 +342,8 @@ impl CertBuilder<'_> { /// Some("Alice Lovelace <alice@example.org>")) /// .set_creation_time(t) /// .generate()?; - /// assert_eq!(cert.primary_key().self_signatures()[0].signature_creation_time(), + /// assert_eq!(cert.primary_key().self_signatures().nth(0).unwrap() + /// .signature_creation_time(), /// Some(t)); /// # Ok(()) /// # } |