diff options
author | Hugo Camboulive <[email protected]> | 2020-07-19 23:39:04 +0100 |
---|---|---|
committer | Hugo Camboulive <[email protected]> | 2020-07-19 23:39:04 +0100 |
commit | c36814f1804f957504bfcda45f2545280fdc412e (patch) | |
tree | a6384bb0585259a03e61df2ed0a33a7ed1a8db80 /src/app/mod.rs | |
parent | c357ba5e2bd9bc1cb95f6d38412e1d84752aa70e (diff) |
use cross-platform file watcher
Allows running on OSX.
Diffstat (limited to 'src/app/mod.rs')
-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 @@ | |||
1 | use std::default::Default; | 1 | use std::default::Default; |
2 | use std::sync::mpsc::Receiver; | 2 | use std::sync::mpsc::Receiver; |
3 | 3 | ||
4 | use notify::{DebouncedEvent, INotifyWatcher}; | 4 | use notify::{DebouncedEvent, RecommendedWatcher}; |
5 | 5 | ||
6 | use crate::habit::HabitWrapper; | 6 | use 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, |