summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@pep.foundation>2020-03-31 09:18:17 +0200
committerNeal H. Walfield <neal@pep.foundation>2020-03-31 21:22:01 +0200
commit98c111bb3f266a40f7e81513a5566d5e25aa4cf6 (patch)
tree66be4660284565ee47828120c39a6d010f7b8bfe
parent0693bee6431f2020ab9be8b85c59cbac3c5f9ffd (diff)
openpgp: Use a more accurate lifetime.
-rw-r--r--openpgp/src/cert/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/openpgp/src/cert/mod.rs b/openpgp/src/cert/mod.rs
index ae3d063d..26b35bf6 100644
--- a/openpgp/src/cert/mod.rs
+++ b/openpgp/src/cert/mod.rs
@@ -1450,7 +1450,7 @@ impl<'a> ValidCert<'a> {
/// Returns the amalgamated primary key.
pub fn primary_key(&self)
- -> ValidPrimaryKeyAmalgamation<key::PublicParts>
+ -> ValidPrimaryKeyAmalgamation<'a, key::PublicParts>
{
self.cert.primary_key().with_policy(self.policy, self.time)
.expect("A ValidKeyAmalgamation must have a ValidPrimaryKeyAmalgamation")