diff options
Diffstat (limited to 'crates/tor-basic-utils/src')
| -rw-r--r-- | crates/tor-basic-utils/src/rangebounds.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/tor-basic-utils/src/rangebounds.rs b/crates/tor-basic-utils/src/rangebounds.rs index 14c8f9c75..77a353484 100644 --- a/crates/tor-basic-utils/src/rangebounds.rs +++ b/crates/tor-basic-utils/src/rangebounds.rs @@ -114,7 +114,7 @@ mod test { use super::*; use Bound::{Excluded as Excl, Included as Incl, Unbounded}; use std::fmt::Debug; - use std::time::{Duration, SystemTime}; + use web_time_compat::{Duration, SystemTime, SystemTimeExt}; /// A helper that computes the intersection of `range1` and `range2`. /// @@ -247,7 +247,7 @@ mod test { // [t1, t2]: [.......] // [t3, t4]: [.......] // intersection: [...] - let now = SystemTime::now(); + let now = SystemTime::get(); let t1 = now; let t2 = now + 2 * MIN; |
