Skip to content

Commit

Permalink
update mock_instant to 0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
antonok-edm committed Jun 13, 2024
1 parent db3fb2e commit 78589f5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
7 changes: 2 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ thiserror = "1.0"
[dev-dependencies]
criterion = "0.5"
csv = "1"
mock_instant = { version = "0.2", features = ["sync"] }
serde_json = "1.0"
mock_instant = { version = "0.5" }
# By default, reqwest builds openssl from source, which fails on missing/incompatible system dependencies
reqwest = { version = "0.11", features = ["rustls-tls"], default-features = false }
futures = "0.3"
Expand Down
4 changes: 2 additions & 2 deletions src/regex_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use std::time::Duration;

#[cfg(test)]
#[cfg(not(target_arch = "wasm32"))]
use mock_instant::Instant;
use mock_instant::global::Instant;
#[cfg(not(test))]
#[cfg(not(target_arch = "wasm32"))]
use std::time::Instant;
Expand Down Expand Up @@ -232,7 +232,7 @@ mod tests {
use crate::filters::network::NetworkMatchable;
use crate::request;

use mock_instant::MockClock;
use mock_instant::global::MockClock;

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

0 comments on commit 78589f5

Please sign in to comment.