aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Camboulive <[email protected]>2020-07-19 23:39:04 +0100
committerHugo Camboulive <[email protected]>2020-07-19 23:39:04 +0100
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 @@
1use std::default::Default; 1use std::default::Default;
2use std::sync::mpsc::Receiver; 2use std::sync::mpsc::Receiver;
3 3
4use notify::{DebouncedEvent, INotifyWatcher}; 4use notify::{DebouncedEvent, RecommendedWatcher};
5 5
6use crate::habit::HabitWrapper; 6use crate::habit::HabitWrapper;
7 7
@@ -16,7 +16,7 @@ pub struct App {
16 // holds app data 16 // holds app data
17 habits: Vec<Box<dyn HabitWrapper>>, 17 habits: Vec<Box<dyn HabitWrapper>>,
18 18
19 _file_watcher: INotifyWatcher, 19 _file_watcher: RecommendedWatcher,
20 file_event_recv: Receiver<DebouncedEvent>, 20 file_event_recv: Receiver<DebouncedEvent>,
21 focus: usize, 21 focus: usize,
22 view_month_offset: u32, 22 view_month_offset: u32,