From d885a75a0e4769511d185ee9e695f1de2b0783db Mon Sep 17 00:00:00 2001 From: Daniel Schaefer Date: Tue, 13 Aug 2024 16:44:27 +0800 Subject: [PATCH] audio: Fix clippy Seems with newer hid version, mutable is not required anymore. Signed-off-by: Daniel Schaefer --- framework_lib/src/audio_card.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework_lib/src/audio_card.rs b/framework_lib/src/audio_card.rs index 2990e9d..8647791 100644 --- a/framework_lib/src/audio_card.rs +++ b/framework_lib/src/audio_card.rs @@ -46,7 +46,7 @@ pub fn check_synaptics_fw_version() { { continue; } - let mut handle = dev.open().unwrap(); + let handle = dev.open().unwrap(); let interface_number = if let Some(num) = find_hid_interface(&handle) { num