Skip to content

Commit 7ccd355

Browse files
committed
refactor: use generic RecommendedWatcher type over platform specific type
Signed-off-by: Reuben Miller <reuben.d.miller@gmail.com>
1 parent 5457bb5 commit 7ccd355

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/common/tedge_utils/src/notify.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use notify::event::AccessMode;
44
use notify::event::CreateKind;
55
use notify::event::RemoveKind;
66
use notify::EventKind;
7-
use notify::INotifyWatcher;
7+
use notify::RecommendedWatcher;
88
use notify::RecursiveMode;
99
use notify::Watcher;
1010
use notify_debouncer_full as debouncer;
@@ -65,7 +65,7 @@ pub enum NotifyStreamError {
6565
}
6666

6767
pub struct NotifyStream {
68-
debouncer: debouncer::Debouncer<INotifyWatcher, debouncer::NoCache>,
68+
debouncer: debouncer::Debouncer<RecommendedWatcher, debouncer::NoCache>,
6969
pub rx: Receiver<(PathBuf, FsEvent)>,
7070
}
7171

0 commit comments

Comments
 (0)