From 48c5d976650c6135acdc1fec434c750ad9cb948f Mon Sep 17 00:00:00 2001 From: user Date: Fri, 28 Aug 2026 06:44:54 +0800 Subject: [PATCH] fix(desktop): drop stale unused_mut allow The main window builder binding in appearance.rs carries an #[allow(unused_mut)] attribute, but the allow can never fire: the builder is unconditionally reassigned via disable_drag_drop_handler() on every platform, with further conditional reassignments in the macos and windows cfg blocks. With the mutability genuinely consumed on all targets, the suppression is dead weight that hides future regressions. Remove the attribute; the binding and all consumers are unchanged. Test: cargo check --release -p bitfun-desktop --jobs 4 (0 errors 0 warnings; no new warning surfaces after removal) Test: cargo check -p bitfun-desktop (dev profile, 0 errors 0 warnings) AI: This commit was authored with AI assistance; checks were run locally on Windows (release + dev profiles) and non-Windows compilation surfaces are to be confirmed by the upstream multi-OS CI matrix. --- src/apps/desktop/src/appearance.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/apps/desktop/src/appearance.rs b/src/apps/desktop/src/appearance.rs index a9f7130e99..e38bce5df2 100644 --- a/src/apps/desktop/src/appearance.rs +++ b/src/apps/desktop/src/appearance.rs @@ -575,7 +575,6 @@ pub fn create_main_window( _ => "other", }; - #[allow(unused_mut)] let mut builder = tauri::WebviewWindowBuilder::new(app_handle, "main", main_url) .title("BitFun") .inner_size(