Do not trigger spurious watch events on Write and Remove
This commit is contained in:
parent
6bc3039b4f
commit
570ce6681f
|
@ -98,8 +98,6 @@ pub fn trigger_on_change<F>(book: &mut MDBook, closure: F) -> ()
|
||||||
match rx.recv() {
|
match rx.recv() {
|
||||||
Ok(event) => {
|
Ok(event) => {
|
||||||
match event {
|
match event {
|
||||||
NoticeWrite(path) |
|
|
||||||
NoticeRemove(path) |
|
|
||||||
Create(path) |
|
Create(path) |
|
||||||
Write(path) |
|
Write(path) |
|
||||||
Remove(path) |
|
Remove(path) |
|
||||||
|
|
Loading…
Reference in New Issue