diff options
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 52cc9527..6e0932ff 100644 --- a/openpgp/src/cert/bindings.rs +++ b/openpgp/src/cert/bindings.rs @@ -36,7 +36,7 @@ impl<P: key::KeyParts> Key<P, key::SubordinateRole> { /// /// // Let's add an encryption subkey. /// let flags = KeyFlags::default().set_storage_encryption(true); - /// assert_eq!(cert.keys().alive().revoked(false) + /// assert_eq!(cert.keys().policy(None).alive().revoked(false) /// .key_flags(&flags).count(), /// 0); /// @@ -53,7 +53,7 @@ impl<P: key::KeyParts> Key<P, key::SubordinateRole> { /// binding.into()])?; /// /// // Check that we have an encryption subkey. - /// assert_eq!(cert.keys().alive().revoked(false) + /// assert_eq!(cert.keys().policy(None).alive().revoked(false) /// .key_flags(flags).count(), /// 1); /// # Ok(()) } |