diff options
Diffstat (limited to 'openpgp/src/lib.rs')
-rw-r--r-- | openpgp/src/lib.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/openpgp/src/lib.rs b/openpgp/src/lib.rs index 1dede3d9..a4c54f6e 100644 --- a/openpgp/src/lib.rs +++ b/openpgp/src/lib.rs @@ -64,8 +64,6 @@ extern crate quickcheck; extern crate rand; -extern crate time; - #[macro_use] extern crate lazy_static; extern crate idna; @@ -156,9 +154,9 @@ mod tests; /// The time is chosen to that the subkeys in /// openpgp/tests/data/keys/neal.pgp are not expired. #[cfg(test)] -fn frozen_time() -> time::Tm { +fn frozen_time() -> std::time::SystemTime { use crate::conversions::Time; - time::Tm::from_pgp(1554542220 - 1) + std::time::SystemTime::from_pgp(1554542220 - 1) } /// Crate result specialization. |