From 0a09b4d5ee01b11c875ed298600aa552e3e96051 Mon Sep 17 00:00:00 2001 From: Saber Haj Rabiee Date: Mon, 3 Feb 2025 04:04:42 -0800 Subject: [PATCH] fix: catch `any` event in case the OS isn't specific about the event. windows isn't specific about the notify event (closes #430) --- src/service/notify.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/service/notify.rs b/src/service/notify.rs index fa3f6c18..a5673927 100644 --- a/src/service/notify.rs +++ b/src/service/notify.rs @@ -92,8 +92,7 @@ fn handle(event: Event, proj: Arc) { if let EventKind::Any | EventKind::Other | EventKind::Access(_) - | EventKind::Modify(ModifyKind::Any | ModifyKind::Other | ModifyKind::Metadata(_)) = - event.kind + | EventKind::Modify(ModifyKind::Other | ModifyKind::Metadata(_)) = event.kind { return; };