diff options
author | Hugo Camboulive <hugo@camboulive.me> | 2020-07-20 00:39:04 +0200 |
---|---|---|
committer | Hugo Camboulive <hugo@camboulive.me> | 2020-07-20 00:39:04 +0200 |
commit | c36814f1804f957504bfcda45f2545280fdc412e (patch) | |
tree | a6384bb0585259a03e61df2ed0a33a7ed1a8db80 | |
parent | c357ba5e2bd9bc1cb95f6d38412e1d84752aa70e (diff) |
use cross-platform file watcher
Allows running on OSX.
-rw-r--r-- | src/app/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/app/mod.rs b/src/app/mod.rs index 0886930..2aecb33 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -1,7 +1,7 @@ use std::default::Default; use std::sync::mpsc::Receiver; -use notify::{DebouncedEvent, INotifyWatcher}; +use notify::{DebouncedEvent, RecommendedWatcher}; use crate::habit::HabitWrapper; @@ -16,7 +16,7 @@ pub struct App { // holds app data habits: Vec<Box<dyn HabitWrapper>>, - _file_watcher: INotifyWatcher, + _file_watcher: RecommendedWatcher, file_event_recv: Receiver<DebouncedEvent>, focus: usize, view_month_offset: u32, |