diff options
author | Igor Matuszewski <igor@sequoia-pgp.org> | 2020-04-07 15:29:59 +0200 |
---|---|---|
committer | Igor Matuszewski <xanewok@gmail.com> | 2020-04-07 15:26:40 +0000 |
commit | 5a85ee090d6626456771c7505e407a894b9e3267 (patch) | |
tree | e0091a01e98da2862284cc51b89bcd5f86158ab1 /openpgp/src/parse/stream.rs | |
parent | 803c8b7bfad326711893aff39ddd15605f6e3e11 (diff) |
openpgp: Simplify some default time unwrapping
Diffstat (limited to 'openpgp/src/parse/stream.rs')
-rw-r--r-- | openpgp/src/parse/stream.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/parse/stream.rs b/openpgp/src/parse/stream.rs index 5ed3cae8..81e73094 100644 --- a/openpgp/src/parse/stream.rs +++ b/openpgp/src/parse/stream.rs @@ -1068,8 +1068,7 @@ impl<'a, H: VerificationHelper + DecryptionHelper> Decryptor<'a, H> { .map(|_| time::Duration::new(0, 0)) .unwrap_or( *crate::packet::signature::subpacket::CLOCK_SKEW_TOLERANCE); - let time = time - .unwrap_or_else(|| time::SystemTime::now()); + let time = time.unwrap_or_else(time::SystemTime::now); let mut ppr = PacketParserBuilder::from_buffered_reader(bio)? .map(helper.mapping()).finalize()?; |