diff --git a/src/input_common.rs b/src/input_common.rs index b614250f4..0fa1cf892 100644 --- a/src/input_common.rs +++ b/src/input_common.rs @@ -1798,8 +1798,8 @@ pub struct InputEventQueue { } impl InputEventQueue { - pub fn new(in_fd: RawFd) -> InputEventQueue { - InputEventQueue { + pub fn new(in_fd: RawFd) -> Self { + Self { data: InputData::new(in_fd), } }