Skip to content

Commit 9102886

Browse files
committed
use mock_instant::thread_local::MockClock
1 parent 5035c10 commit 9102886

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/regex_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use std::time::Duration;
1515

1616
#[cfg(test)]
1717
#[cfg(not(target_arch = "wasm32"))]
18-
use mock_instant::global::Instant;
18+
use mock_instant::thread_local::Instant;
1919
#[cfg(not(test))]
2020
#[cfg(not(target_arch = "wasm32"))]
2121
use std::time::Instant;

tests/unit/regex_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ mod tests {
44

55
use crate::{request, Engine};
66

7-
use mock_instant::global::MockClock;
7+
use mock_instant::thread_local::MockClock;
88

99
fn make_engine(line: &str) -> Engine {
1010
Engine::from_rules(vec![line], Default::default())

0 commit comments

Comments
 (0)