Skip to content

Commit 0581a31

Browse files
authored
Merge pull request #2751 from reubenmiller/refactor-use-generic-watcher
refactor: use generic RecommendedWatcher type over platform specific type
2 parents eef1dc5 + 7ccd355 commit 0581a31

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)