From 7ccd35567ac907e4146f34acb98dbc394199c4eb Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Mon, 4 Mar 2024 09:48:32 +0100 Subject: [PATCH] refactor: use generic RecommendedWatcher type over platform specific type Signed-off-by: Reuben Miller --- crates/common/tedge_utils/src/notify.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/common/tedge_utils/src/notify.rs b/crates/common/tedge_utils/src/notify.rs index 35d1ab9a7d6..750200cc5c1 100644 --- a/crates/common/tedge_utils/src/notify.rs +++ b/crates/common/tedge_utils/src/notify.rs @@ -4,7 +4,7 @@ use notify::event::AccessMode; use notify::event::CreateKind; use notify::event::RemoveKind; use notify::EventKind; -use notify::INotifyWatcher; +use notify::RecommendedWatcher; use notify::RecursiveMode; use notify::Watcher; use notify_debouncer_full as debouncer; @@ -65,7 +65,7 @@ pub enum NotifyStreamError { } pub struct NotifyStream { - debouncer: debouncer::Debouncer, + debouncer: debouncer::Debouncer, pub rx: Receiver<(PathBuf, FsEvent)>, }