From 00defa96588f58cf3c7c1585a8c4e9334a30fa8c Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Sat, 26 Apr 2025 23:01:06 +0800 Subject: [PATCH] Fix windows clippy lint Same if body twice. Should combine it into a single one. Signed-off-by: Daniel Schaefer --- framework_lib/src/touchpad.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/framework_lib/src/touchpad.rs b/framework_lib/src/touchpad.rs index 72bc30c8..e767c7e6 100644 --- a/framework_lib/src/touchpad.rs +++ b/framework_lib/src/touchpad.rs @@ -101,9 +101,7 @@ pub fn print_touchpad_fw_ver() -> Result<(), HidError> { #[cfg(target_os = "linux")] debug!(" HID Version {:04X}", hid_ver); #[cfg(not(target_os = "linux"))] - if ver != format!("{:04X}", hid_ver) { - println!(" HID Version v{:04X}", hid_ver); - } else if log_enabled!(Level::Debug) { + if ver != format!("{:04X}", hid_ver) || log_enabled!(Level::Debug) { println!(" HID Version v{:04X}", hid_ver); }