From 9cc74a7f886ad3aee8570fcadc5459b459872e34 Mon Sep 17 00:00:00 2001 From: Psychotoxical <171614930+Psychotoxical@users.noreply.github.com> Date: Sat, 2 May 2026 12:20:00 +0200 Subject: [PATCH] style(tauri): drop redundant `use super::*;` imports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Five lib_commands submodules either had `use super::*;` duplicated during the split (core.rs, offline.rs, mini.rs — leftover line 3) or didn't reference the parent scope at all (navidrome.rs, bandsintown.rs). Removing them silences all five `unused import` warnings; cargo check is now warning-free. Co-Authored-By: Claude Opus 4.7 (1M context) --- src-tauri/src/lib_commands/app_api/core.rs | 2 -- src-tauri/src/lib_commands/app_api/navidrome.rs | 2 -- src-tauri/src/lib_commands/cache/offline.rs | 2 -- src-tauri/src/lib_commands/ui/bandsintown.rs | 2 -- src-tauri/src/lib_commands/ui/mini.rs | 2 -- 5 files changed, 10 deletions(-) diff --git a/src-tauri/src/lib_commands/app_api/core.rs b/src-tauri/src/lib_commands/app_api/core.rs index 8f8577f3..63c62469 100644 --- a/src-tauri/src/lib_commands/app_api/core.rs +++ b/src-tauri/src/lib_commands/app_api/core.rs @@ -1,7 +1,5 @@ use super::*; -use super::*; - #[tauri::command] pub(crate) fn greet(name: &str) -> String { format!("Hello, {}!", name) diff --git a/src-tauri/src/lib_commands/app_api/navidrome.rs b/src-tauri/src/lib_commands/app_api/navidrome.rs index b6a3d1b0..dace9146 100644 --- a/src-tauri/src/lib_commands/app_api/navidrome.rs +++ b/src-tauri/src/lib_commands/app_api/navidrome.rs @@ -1,5 +1,3 @@ -use super::*; - /// Authenticate with Navidrome's own REST API and return a Bearer token. pub(crate) async fn navidrome_token(server_url: &str, username: &str, password: &str) -> Result { let client = reqwest::Client::new(); diff --git a/src-tauri/src/lib_commands/cache/offline.rs b/src-tauri/src/lib_commands/cache/offline.rs index 117e8900..8eb27e33 100644 --- a/src-tauri/src/lib_commands/cache/offline.rs +++ b/src-tauri/src/lib_commands/cache/offline.rs @@ -1,7 +1,5 @@ use super::*; -use super::*; - // ─── Offline Track Cache ────────────────────────────────────────────────────── /// Streams an HTTP response body directly to `dest_path` in small chunks. diff --git a/src-tauri/src/lib_commands/ui/bandsintown.rs b/src-tauri/src/lib_commands/ui/bandsintown.rs index 9ddf0a61..21c01088 100644 --- a/src-tauri/src/lib_commands/ui/bandsintown.rs +++ b/src-tauri/src/lib_commands/ui/bandsintown.rs @@ -1,5 +1,3 @@ -use super::*; - // ── Bandsintown ────────────────────────────────────────────────────────────── // Public REST API: https://rest.bandsintown.com/artists/{name}/events?app_id=… // Bandsintown whitelists app IDs — arbitrary strings now return 403 Forbidden. diff --git a/src-tauri/src/lib_commands/ui/mini.rs b/src-tauri/src/lib_commands/ui/mini.rs index 07cde697..78efec50 100644 --- a/src-tauri/src/lib_commands/ui/mini.rs +++ b/src-tauri/src/lib_commands/ui/mini.rs @@ -1,7 +1,5 @@ use super::*; -use super::*; - // ── Mini Player window ────────────────────────────────────────────────────── // Secondary always-on-top window with minimal playback controls. Uses the // same frontend bundle as the main window; disambiguated by window label