diff --git a/src/event/filter.rs b/src/event/filter.rs
index f78730dcd..cd7abce2b 100644
--- a/src/event/filter.rs
+++ b/src/event/filter.rs
@@ -61,23 +61,23 @@ impl Filter for EventFilter {
}
}
-#[derive(Debug, Clone)]
-pub(crate) struct InternalEventFilter;
-
-impl Filter for InternalEventFilter {
- fn eval(&self, _: &InternalEvent) -> bool {
- true
- }
-}
-
#[cfg(test)]
#[cfg(unix)]
mod tests {
use super::{
super::Event, CursorPositionFilter, EventFilter, Filter, InternalEvent,
- InternalEventFilter, KeyboardEnhancementFlagsFilter, PrimaryDeviceAttributesFilter,
+ KeyboardEnhancementFlagsFilter, PrimaryDeviceAttributesFilter,
};
+ #[derive(Debug, Clone)]
+ pub(crate) struct InternalEventFilter;
+
+ impl Filter for InternalEventFilter {
+ fn eval(&self, _: &InternalEvent) -> bool {
+ true
+ }
+ }
+
#[test]
fn test_cursor_position_filter_filters_cursor_position() {
assert!(!CursorPositionFilter.eval(&InternalEvent::Event(Event::Resize(10, 10))));
diff --git a/src/event/read.rs b/src/event/read.rs
index 6ddbacef6..22f989b4d 100644
--- a/src/event/read.rs
+++ b/src/event/read.rs
@@ -132,10 +132,16 @@ mod tests {
#[cfg(unix)]
use super::super::filter::CursorPositionFilter;
- use super::{
- super::{filter::InternalEventFilter, Event},
- EventSource, InternalEvent, InternalEventReader,
- };
+ use super::{super::Event, EventSource, Filter, InternalEvent, InternalEventReader};
+
+ #[derive(Debug, Clone)]
+ pub(crate) struct InternalEventFilter;
+
+ impl Filter for InternalEventFilter {
+ fn eval(&self, _: &InternalEvent) -> bool {
+ true
+ }
+ }
#[test]
fn test_poll_fails_without_event_source() {
diff --git a/src/event/sys/unix/parse.rs b/src/event/sys/unix/parse.rs
index 2019b5f22..29377438f 100644
--- a/src/event/sys/unix/parse.rs
+++ b/src/event/sys/unix/parse.rs
@@ -135,7 +135,7 @@ fn char_code_to_event(code: KeyCode) -> KeyEvent {
}
pub(crate) fn parse_csi(buffer: &[u8]) -> io::Result