From 3df0f65152c8585cfb29d231c880b86b9164dcfd Mon Sep 17 00:00:00 2001 From: Daniel Faust Date: Wed, 21 Feb 2024 13:33:26 +0100 Subject: [PATCH] Use instant crate --- notify-types/Cargo.toml | 1 + notify-types/src/debouncer_full.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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;