mirror of
https://github.com/kilyabin/psysonic.git
synced 2026-07-22 06:25:41 +00:00
style(tauri): drop redundant use super::*; imports
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) <noreply@anthropic.com>
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
use super::*;
|
|
||||||
|
|
||||||
#[tauri::command]
|
#[tauri::command]
|
||||||
pub(crate) fn greet(name: &str) -> String {
|
pub(crate) fn greet(name: &str) -> String {
|
||||||
format!("Hello, {}!", name)
|
format!("Hello, {}!", name)
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
use super::*;
|
|
||||||
|
|
||||||
/// Authenticate with Navidrome's own REST API and return a Bearer token.
|
/// 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<String, String> {
|
pub(crate) async fn navidrome_token(server_url: &str, username: &str, password: &str) -> Result<String, String> {
|
||||||
let client = reqwest::Client::new();
|
let client = reqwest::Client::new();
|
||||||
|
|||||||
-2
@@ -1,7 +1,5 @@
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
use super::*;
|
|
||||||
|
|
||||||
// ─── Offline Track Cache ──────────────────────────────────────────────────────
|
// ─── Offline Track Cache ──────────────────────────────────────────────────────
|
||||||
|
|
||||||
/// Streams an HTTP response body directly to `dest_path` in small chunks.
|
/// Streams an HTTP response body directly to `dest_path` in small chunks.
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
use super::*;
|
|
||||||
|
|
||||||
// ── Bandsintown ──────────────────────────────────────────────────────────────
|
// ── Bandsintown ──────────────────────────────────────────────────────────────
|
||||||
// Public REST API: https://rest.bandsintown.com/artists/{name}/events?app_id=…
|
// Public REST API: https://rest.bandsintown.com/artists/{name}/events?app_id=…
|
||||||
// Bandsintown whitelists app IDs — arbitrary strings now return 403 Forbidden.
|
// Bandsintown whitelists app IDs — arbitrary strings now return 403 Forbidden.
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
use super::*;
|
use super::*;
|
||||||
|
|
||||||
use super::*;
|
|
||||||
|
|
||||||
// ── Mini Player window ──────────────────────────────────────────────────────
|
// ── Mini Player window ──────────────────────────────────────────────────────
|
||||||
// Secondary always-on-top window with minimal playback controls. Uses the
|
// Secondary always-on-top window with minimal playback controls. Uses the
|
||||||
// same frontend bundle as the main window; disambiguated by window label
|
// same frontend bundle as the main window; disambiguated by window label
|
||||||
|
|||||||
Reference in New Issue
Block a user