summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-28 09:49:59 +0300
committerLars Wirzenius <liw@sequoia-pgp.org>2021-09-30 08:31:12 +0300
commit93bf23b79a6ae7bf1a81964a338754d0c16d2ca0 (patch)
treeb1e94ac658ecf4a88fa28624d748efa53e4496aa /openpgp
parent28394a99d39d9c46a9cb6e746159b5ae56871737 (diff)
Return a value without first assigning it to a variable
Found by clippy lint let_and_return: https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/cert/amalgamation.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/openpgp/src/cert/amalgamation.rs b/openpgp/src/cert/amalgamation.rs
index f7c4e51d..9e3c31a1 100644
--- a/openpgp/src/cert/amalgamation.rs
+++ b/openpgp/src/cert/amalgamation.rs
@@ -1109,9 +1109,8 @@ where C: IntoIterator<Item = S>,
let creation_time =
time::SystemTime::now() - time::Duration::new(SIG_BACKDATE_BY, 0);
- let template = SignatureBuilder::new(SignatureType::AttestationKey)
- .set_signature_creation_time(creation_time)?;
- template
+ SignatureBuilder::new(SignatureType::AttestationKey)
+ .set_signature_creation_time(creation_time)?
};
let template = template