diff options
Diffstat (limited to 'openpgp/src/packet/pkesk.rs')
-rw-r--r-- | openpgp/src/packet/pkesk.rs | 3 |
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(); |