Skip to content

Commit

Permalink
Use instant crate
Browse files Browse the repository at this point in the history
  • Loading branch information
dfaust committed Feb 21, 2024
1 parent 578f4ad commit 5f6c888
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 @@ -15,6 +15,7 @@ authors = ["Daniel Faust <hessijames@gmail.com>"]
edition = "2021"

[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 5f6c888

Please sign in to comment.