From 5f6c888120555427e093d79adefcdf2ce10da780 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 8fc315a3..b065c104 100644 --- a/notify-types/Cargo.toml +++ b/notify-types/Cargo.toml @@ -15,6 +15,7 @@ authors = ["Daniel Faust "] edition = "2021" [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;