From 6f65661109d04494ca6b0a3b073e583157c99d1e Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Fri, 18 Apr 2025 20:37:52 +0200 Subject: [PATCH] Replace redundant type name with Self --- src/input_common.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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), } }