diff options
Diffstat (limited to 'alacritty_terminal/src/event.rs')
-rw-r--r-- | alacritty_terminal/src/event.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/alacritty_terminal/src/event.rs b/alacritty_terminal/src/event.rs index 9e5031a0..b592ce1b 100644 --- a/alacritty_terminal/src/event.rs +++ b/alacritty_terminal/src/event.rs @@ -99,6 +99,7 @@ pub trait EventListener { fn send_event(&self, _event: Event) {} } -/// Placeholder implementation for tests. -#[cfg(test)] -impl EventListener for () {} +/// Null sink for events. +pub struct VoidListener; + +impl EventListener for VoidListener {} |