From 71df1c3a0967ece340f3bd2bf46178e0044ac714 Mon Sep 17 00:00:00 2001 From: quailcoral <64557571+quailcoral@users.noreply.github.com> Date: Thu, 27 Jan 2022 21:34:06 -0500 Subject: [PATCH] Fix compiler error from `notify` as done here: https://github.com/mun-lang/mun/pull/343 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 363b264..160582e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -242,7 +242,7 @@ fn spawn_watcher(updaters: SenderListPtr) -> notify::Result let cwd = env::current_dir().unwrap(); let md_file_name = cwd.join(&(matches.value_of("infile").unwrap())).to_owned(); let mut file_event_watcher: RecommendedWatcher = - Watcher::new_immediate(move |event: notify::Result| { + RecommendedWatcher::new(move |event: notify::Result| { let event = match event { Ok(ev) => ev, Err(e) => {