summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-11-26 14:41:14 +0100
committerJustus Winter <justus@sequoia-pgp.org>2020-11-26 15:22:34 +0100
commitff22912994272ffd88fcfc680619c858a70ea4b0 (patch)
tree7a8b1e69eab04682a247bc4418997b59b9681372 /openpgp
parenteb5b1798ce4aa32c3c6d25bcac793ed5c9b59185 (diff)
openpgp: Remove unused lifetimes.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/cert/builder.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/openpgp/src/cert/builder.rs b/openpgp/src/cert/builder.rs
index 5976a931..c6651786 100644
--- a/openpgp/src/cert/builder.rs
+++ b/openpgp/src/cert/builder.rs
@@ -446,7 +446,7 @@ impl CertBuilder<'_> {
/// # Ok(())
/// # }
/// ```
- pub fn add_userid<'a, U>(mut self, uid: U) -> Self
+ pub fn add_userid<U>(mut self, uid: U) -> Self
where U: Into<packet::UserID>
{
self.userids.push(uid.into());
@@ -526,7 +526,7 @@ impl CertBuilder<'_> {
/// # Ok(())
/// # }
/// ```
- pub fn add_user_attribute<'a, U>(mut self, ua: U) -> Self
+ pub fn add_user_attribute<U>(mut self, ua: U) -> Self
where U: Into<packet::UserAttribute>
{
self.user_attributes.push(ua.into());