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(_) ) }