summaryrefslogtreecommitdiffstats
path: root/openpgp/src/cert/builder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'openpgp/src/cert/builder.rs')
-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 94d167aa..cce89fb3 100644
--- a/openpgp/src/cert/builder.rs
+++ b/openpgp/src/cert/builder.rs
@@ -260,7 +260,7 @@ impl CertBuilder {
/// Sets the expiration time.
///
/// A value of None means never.
- pub fn set_expiration<T>(mut self, expiration: T) -> Self
+ pub fn set_expiration_time<T>(mut self, expiration: T) -> Self
where T: Into<Option<time::Duration>>
{
self.primary.expiration = expiration.into();
@@ -583,7 +583,7 @@ mod tests {
let s = std::time::Duration::new(1, 0);
let (cert,_) = CertBuilder::new()
- .set_expiration(600 * s)
+ .set_expiration_time(600 * s)
.add_subkey(KeyFlags::default().set_signing(true),
300 * s)
.add_subkey(KeyFlags::default().set_authentication(true),