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/bindings.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/bindings.rs')
-rw-r--r-- | openpgp/src/cert/bindings.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/bindings.rs b/openpgp/src/cert/bindings.rs index 1d1ee3c5..49f4b4f7 100644 --- a/openpgp/src/cert/bindings.rs +++ b/openpgp/src/cert/bindings.rs @@ -176,7 +176,7 @@ impl UserID { /// /// // Check that we have a certification on the userid. /// assert_eq!(bob.userids().nth(0).unwrap() - /// .certifications().len(), 1); + /// .certifications().count(), 1); /// # Ok(()) } pub fn certify<S, H, T>(&self, signer: &mut dyn Signer, cert: &Cert, signature_type: S, @@ -314,7 +314,7 @@ impl UserAttribute { /// /// // Check that we have a certification on the userid. /// assert_eq!(bob.user_attributes().nth(0).unwrap() - /// .certifications().len(), + /// .certifications().count(), /// 1); /// # Ok(()) } pub fn certify<S, H, T>(&self, signer: &mut dyn Signer, cert: &Cert, |