diff --git a/notify-types/Cargo.toml b/notify-types/Cargo.toml index d7254c8b..7b63de71 100644 --- a/notify-types/Cargo.toml +++ b/notify-types/Cargo.toml @@ -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 } diff --git a/notify-types/src/debouncer_full.rs b/notify-types/src/debouncer_full.rs index 5c3c9d85..8266ffe6 100644 --- a/notify-types/src/debouncer_full.rs +++ b/notify-types/src/debouncer_full.rs @@ -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;