Merge pull request #427 from budziq/spurious_reloads
Do not trigger spurious watch events on Write and Remove
This commit is contained in:
commit
276eab095c
|
@ -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