summaryrefslogtreecommitdiffstats
path: root/openpgp/src/packet/pkesk.rs
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2019-11-20 19:02:34 +0100
committerJustus Winter <justus@sequoia-pgp.org>2019-11-21 16:25:30 +0100
commitb251f9e8857fba284f515061ac62013519997e30 (patch)
tree8cb3501b8cb32e43496e56dd76446ba7559c7eed /openpgp/src/packet/pkesk.rs
parent13c437470cc7377d7b761b5bb9b8d4efb0ba385e (diff)
openpgp: Replace time crate with std::time.
- In sq and sqv, use chrono to interface with the user. - Fixes #341.
Diffstat (limited to 'openpgp/src/packet/pkesk.rs')
-rw-r--r--openpgp/src/packet/pkesk.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/openpgp/src/packet/pkesk.rs b/openpgp/src/packet/pkesk.rs
index 3b3897a0..b2e9a0f4 100644
--- a/openpgp/src/packet/pkesk.rs
+++ b/openpgp/src/packet/pkesk.rs
@@ -340,7 +340,6 @@ mod tests {
use crate::packet::key;
use crate::packet::key::Key4;
use nettle::curve25519;
- use time;
// 20 byte sec key
let mut sec = [
@@ -363,7 +362,7 @@ mod tests {
scalar: MPI::new(&sec[..]).into(),
};
let mut key: key::UnspecifiedPublic
- = Key4::new(time::now().canonicalize(),
+ = Key4::new(std::time::SystemTime::now().canonicalize(),
PublicKeyAlgorithm::ECDH,
public_mpis, None)
.unwrap().into();