From fd9ab98da446063b7a0e415778fa512d8f3afe6a Mon Sep 17 00:00:00 2001 From: Alexander Sieg Date: Tue, 23 Nov 2021 14:41:57 +0100 Subject: [PATCH] kqueue: emit EventKind::Modify on kqueue write event This should make the event emitted by the kqueue backend to be more in line with the inotify backend and the documentation on `EventKind`. --- src/kqueue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kqueue.rs b/src/kqueue.rs index 6e6d2e11..a5ccdeeb 100644 --- a/src/kqueue.rs +++ b/src/kqueue.rs @@ -161,7 +161,7 @@ impl EventLoop { //data was written to this file kqueue::Vnode::Write => { - Event::new(EventKind::Access(AccessKind::Close(AccessMode::Write))) + Event::new(EventKind::Modify(ModifyKind::Data(DataChange::Any))) } /*