watchers 1.7.1

Git integrated file watcher
1
2
3
4
5
6
7
8
use notify::{Event, EventKind};

pub fn was_modification(event: &Event) -> bool {
    matches!(
        event.kind,
        EventKind::Remove(_) | EventKind::Create(_) | EventKind::Modify(_)
    )
}