diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-18 10:58:28 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-18 10:58:48 +0100 |
commit | 363110b87dd5228e5a22f336fa96fc53a17149be (patch) | |
tree | bb86bf0f95f49bc588e13eb191b4b16e1c822001 /openpgp/src/serialize/cert.rs | |
parent | 005196c39a91f525d5a7822c7d82a3c9ba8e667e (diff) |
openpgp: Use predicate Key4::has_secret.
Diffstat (limited to 'openpgp/src/serialize/cert.rs')
-rw-r--r-- | openpgp/src/serialize/cert.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/serialize/cert.rs b/openpgp/src/serialize/cert.rs index 11b2341d..d7c94ab7 100644 --- a/openpgp/src/serialize/cert.rs +++ b/openpgp/src/serialize/cert.rs @@ -347,7 +347,7 @@ impl<'a> TSK<'a> { /// /// let cert_ = Cert::from_bytes(&buf)?; /// assert_eq!(cert_.keys().with_policy(p, None).alive().revoked(false).secret().count(), 1); - /// assert!(cert_.primary_key().secret().is_some()); + /// assert!(cert_.primary_key().has_secret()); /// # Ok(()) } pub fn set_filter<P>(mut self, predicate: P) -> Self where P: 'a + Fn(&'a key::UnspecifiedSecret) -> bool |