Skip to content

Commit

Permalink
Merge pull request #2751 from reubenmiller/refactor-use-generic-watcher
Browse files Browse the repository at this point in the history
refactor: use generic RecommendedWatcher type over platform specific type
  • Loading branch information
reubenmiller authored Mar 4, 2024
2 parents eef1dc5 + 7ccd355 commit 0581a31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/common/tedge_utils/src/notify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -65,7 +65,7 @@ pub enum NotifyStreamError {
}

pub struct NotifyStream {
debouncer: debouncer::Debouncer<INotifyWatcher, debouncer::NoCache>,
debouncer: debouncer::Debouncer<RecommendedWatcher, debouncer::NoCache>,
pub rx: Receiver<(PathBuf, FsEvent)>,
}

Expand Down

0 comments on commit 0581a31

Please sign in to comment.