summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Camboulive <hugo@camboulive.me>2020-07-20 00:39:04 +0200
committerHugo Camboulive <hugo@camboulive.me>2020-07-20 00:39:04 +0200
commitc36814f1804f957504bfcda45f2545280fdc412e (patch)
treea6384bb0585259a03e61df2ed0a33a7ed1a8db80
parentc357ba5e2bd9bc1cb95f6d38412e1d84752aa70e (diff)
use cross-platform file watcher
Allows running on OSX.
-rw-r--r--src/app/mod.rs4
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,