summaryrefslogtreecommitdiffstats
path: root/openpgp/src/types
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2021-06-28 14:37:47 +0200
committerJustus Winter <justus@sequoia-pgp.org>2021-07-16 11:57:22 +0200
commit33d4f9513627b22e4bc1c3ecf2fa22f1dd3b274f (patch)
tree95dd81756b0bcd9367fd6f43d8f09d7435f251a6 /openpgp/src/types
parent39cef59facba9d2da8b4768e2c99ac7d6de98fd2 (diff)
openpgp: Add missing ValidCert::revocation_keys.
- The documentation refers to this function, however, until now it was missing. Adding it is simple enough, but technically breaks the API, because it breaks callers invoking ValidCert::revocation_keys, which would previously deref to Cert::revocation_keys. - Avoid the breakage by adding an optional argument, which should be None but can be Some(_) in order to appease existing users. See #725.
Diffstat (limited to 'openpgp/src/types')
-rw-r--r--openpgp/src/types/revocation_key.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/types/revocation_key.rs b/openpgp/src/types/revocation_key.rs
index b55d65ce..0643c264 100644
--- a/openpgp/src/types/revocation_key.rs
+++ b/openpgp/src/types/revocation_key.rs
@@ -46,7 +46,7 @@ use crate::{
/// .generate()?;
///
/// // Make sure Alice is listed as a designated revoker for Bob.
-/// assert_eq!(bob.with_policy(p, None)?.revocation_keys(p)
+/// assert_eq!(bob.with_policy(p, None)?.revocation_keys(None)
/// .collect::<Vec<&RevocationKey>>(),
/// vec![&(&alice).into()]);
/// # Ok(()) }