Skip to content

Commit 78589f5

Browse files
committed
update mock_instant to 0.5
1 parent db3fb2e commit 78589f5

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Cargo.lock

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ thiserror = "1.0"
4545
[dev-dependencies]
4646
criterion = "0.5"
4747
csv = "1"
48-
mock_instant = { version = "0.2", features = ["sync"] }
49-
serde_json = "1.0"
48+
mock_instant = { version = "0.5" }
5049
# By default, reqwest builds openssl from source, which fails on missing/incompatible system dependencies
5150
reqwest = { version = "0.11", features = ["rustls-tls"], default-features = false }
5251
futures = "0.3"

src/regex_manager.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::time::Duration;
99

1010
#[cfg(test)]
1111
#[cfg(not(target_arch = "wasm32"))]
12-
use mock_instant::Instant;
12+
use mock_instant::global::Instant;
1313
#[cfg(not(test))]
1414
#[cfg(not(target_arch = "wasm32"))]
1515
use std::time::Instant;
@@ -232,7 +232,7 @@ mod tests {
232232
use crate::filters::network::NetworkMatchable;
233233
use crate::request;
234234

235-
use mock_instant::MockClock;
235+
use mock_instant::global::MockClock;
236236

237237
fn make_filter(line: &str) -> NetworkFilter {
238238
NetworkFilter::parse(line, true, Default::default()).unwrap()

0 commit comments

Comments
 (0)