From 570ce6681f205de448211a844b71f86b9211ed51 Mon Sep 17 00:00:00 2001 From: Michal Budzynski Date: Wed, 6 Sep 2017 22:33:56 +0200 Subject: [PATCH] Do not trigger spurious watch events on Write and Remove --- src/bin/watch.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bin/watch.rs b/src/bin/watch.rs index 0b65d8d0..e176041e 100644 --- a/src/bin/watch.rs +++ b/src/bin/watch.rs @@ -98,8 +98,6 @@ pub fn trigger_on_change(book: &mut MDBook, closure: F) -> () match rx.recv() { Ok(event) => { match event { - NoticeWrite(path) | - NoticeRemove(path) | Create(path) | Write(path) | Remove(path) |