summaryrefslogtreecommitdiff
path: root/src/watch/notify_event.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-09-12 17:45:42 +0200
committermo8it <mo8it@proton.me>2024-09-12 17:46:06 +0200
commit3947c4de284cb82945055a0fe802c2755e951bb9 (patch)
tree943146d047f4e3722878df5e2bb3fd5c834886d5 /src/watch/notify_event.rs
parent664228ef8b910640b353acd7445fa14b9d16ad9f (diff)
Pause input while running an exercise
Diffstat (limited to 'src/watch/notify_event.rs')
-rw-r--r--src/watch/notify_event.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/watch/notify_event.rs b/src/watch/notify_event.rs
index 7471640..9b23525 100644
--- a/src/watch/notify_event.rs
+++ b/src/watch/notify_event.rs
@@ -4,7 +4,7 @@ use std::sync::mpsc::Sender;
use super::WatchEvent;
pub struct NotifyEventHandler {
- pub tx: Sender<WatchEvent>,
+ pub sender: Sender<WatchEvent>,
/// Used to report which exercise was modified.
pub exercise_names: &'static [&'static [u8]],
}
@@ -47,6 +47,6 @@ impl notify_debouncer_mini::DebounceEventHandler for NotifyEventHandler {
// An error occurs when the receiver is dropped.
// After dropping the receiver, the debouncer guard should also be dropped.
- let _ = self.tx.send(output_event);
+ let _ = self.sender.send(output_event);
}
}