chore: fix remaining Rust warnings

- Allow dead_code on TokenValidationResponse.code (deserialized but not read)
- Remove unused MusicProvider import in commands_v2.rs
- Restore #[allow(non_snake_case)] on v2_plex_cache_get_tracks
- Replace drop(tokens) with let _ = tokens (drop on reference is no-op)
This commit is contained in:
vicrodh committed 2026-02-25 20:57:30 -06:00
1 parent e8979e88c0
commit ddedca1b5e
3 files changed
+3 -4

No files matched your search

@@ -116,6 +116,7 @@ pub struct UserInfo {
/// Token validation response /// Token validation response
#[derive(Debug, Deserialize)] #[derive(Debug, Deserialize)]
#[allow(dead_code)]
pub struct TokenValidationResponse { pub struct TokenValidationResponse {
pub code: i32, pub code: i32,
pub message: String, pub message: String,
+2 -2
View File
@@ -196,7 +196,7 @@ impl QobuzClient {
"OAuth private key not available — bundle may be outdated".to_string(), "OAuth private key not available — bundle may be outdated".to_string(),
) )
})?; })?;
drop(tokens); let _ = tokens;
// Step 1: Exchange code for token via /oauth/callback // Step 1: Exchange code for token via /oauth/callback
let callback_url = endpoints::build_url(paths::OAUTH_CALLBACK); let callback_url = endpoints::build_url(paths::OAUTH_CALLBACK);
@@ -294,7 +294,7 @@ impl QobuzClient {
.ok_or_else(|| ApiError::BundleExtractionError("Client not initialized".to_string()))? .ok_or_else(|| ApiError::BundleExtractionError("Client not initialized".to_string()))?
.app_id .app_id
.clone(); .clone();
drop(tokens); let _ = tokens;
let user_login_url = endpoints::build_url(paths::USER_LOGIN); let user_login_url = endpoints::build_url(paths::USER_LOGIN);
let mut headers = HeaderMap::new(); let mut headers = HeaderMap::new();
-2
View File
@@ -1993,8 +1993,6 @@ async fn resolve_via_odesli_and_search(
bridge: &State<'_, CoreBridgeState>, bridge: &State<'_, CoreBridgeState>,
runtime: &State<'_, RuntimeManagerState>, runtime: &State<'_, RuntimeManagerState>,
) -> Result<MusicLinkResult, RuntimeError> { ) -> Result<MusicLinkResult, RuntimeError> {
use crate::playlist_import::providers::MusicProvider;
let provider_name = provider.map(|p| format!("{:?}", p)); let provider_name = provider.map(|p| format!("{:?}", p));
// 1. Get title + artist: try direct platform API first (fast), fall back to Odesli // 1. Get title + artist: try direct platform API first (fast), fall back to Odesli