From b0625eafc2f21ad2039ebfd37a6c120cfb35f286 Mon Sep 17 00:00:00 2001 From: Lucas Date: Wed, 4 Nov 2026 11:45:26 +0100 Subject: [PATCH] chore: clippy --- src-tauri/src/commands.rs | 2 ++ src-tauri/src/lib.rs | 2 +- src-tauri/src/state.rs | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src-tauri/src/commands.rs b/src-tauri/src/commands.rs index 9d3bc2e..278dcb7 100644 --- a/src-tauri/src/commands.rs +++ b/src-tauri/src/commands.rs @@ -256,6 +256,7 @@ pub async fn lock_device( } // Command `0x30` +#[allow(clippy::too_many_arguments)] #[tauri::command] pub async fn set_compressor( state: State<'_, AppState>, @@ -310,6 +311,7 @@ pub async fn set_high_pass( } // Command `0x33` +#[allow(clippy::too_many_arguments)] #[tauri::command] pub async fn set_peq_band( state: State<'_, AppState>, diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 39fddee..42b5412 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -70,4 +70,4 @@ pub fn run() { .expect("error while building tauri application"); app.run(|app, event| handle_run_event(app, &event)); -} \ No newline at end of file +} diff --git a/src-tauri/src/state.rs b/src-tauri/src/state.rs index b2f873f..ee23ccf 100644 --- a/src-tauri/src/state.rs +++ b/src-tauri/src/state.rs @@ -31,6 +31,7 @@ impl AppState { } } + #[cfg(mobile)] pub fn disconnect_all(&self) { // clone the Arcs so the map lock isn't held while waiting on devices let devices: Vec>> = {