Skip to content

Commit

Permalink
Use instant crate
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaust authored and 0xpr03 committed Mar 31, 2024
1 parent 8da5139 commit 3df0f65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions notify-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ edition = "2021"
serialization-compat-6 = []

[dependencies]
instant = "0.1.12"
serde = { version = "1.0.89", features = ["derive"], optional = true }
mock_instant = { version = "0.3.0", optional = true }

Expand Down
2 changes: 1 addition & 1 deletion notify-types/src/debouncer_full.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::ops::{Deref, DerefMut};
use mock_instant::Instant;

#[cfg(not(feature = "mock_instant"))]
use std::time::Instant;
use instant::Instant;

use crate::event::Event;

Expand Down

0 comments on commit 3df0f65

Please sign in to comment.