From c36814f1804f957504bfcda45f2545280fdc412e Mon Sep 17 00:00:00 2001 From: Hugo Camboulive Date: Mon, 20 Jul 2020 00:39:04 +0200 Subject: use cross-platform file watcher Allows running on OSX. --- src/app/mod.rs | 4 ++-- 1 file 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>, - _file_watcher: INotifyWatcher, + _file_watcher: RecommendedWatcher, file_event_recv: Receiver, focus: usize, view_month_offset: u32, -- cgit v1.2.3