diff options
Diffstat (limited to 'crates/tor-checkable/src/lib.rs')
| -rw-r--r-- | crates/tor-checkable/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/tor-checkable/src/lib.rs b/crates/tor-checkable/src/lib.rs index 521ff4e70..3efc5dd8c 100644 --- a/crates/tor-checkable/src/lib.rs +++ b/crates/tor-checkable/src/lib.rs @@ -48,6 +48,7 @@ use std::time; use thiserror::Error; +use web_time_compat::{SystemTime, SystemTimeExt}; pub mod signed; pub mod timed; @@ -93,7 +94,7 @@ pub trait Timebound<T>: Sized { /// Unwrap this Timebound object if it is valid now. fn check_valid_now(self) -> Result<T, Self::Error> { - self.check_valid_at(&time::SystemTime::now()) + self.check_valid_at(&SystemTime::get()) } /// Unwrap this object if it is valid at the provided time t. |
