From d33474c572b1d52db19a94ceeaede0379bc86d00 Mon Sep 17 00:00:00 2001 From: Michael Herger Date: Fri, 20 Sep 2024 08:05:09 +0200 Subject: [PATCH] Silence a few warnings --- src/main.rs | 18 +++++++++--------- src/spotty.rs | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main.rs b/src/main.rs index 218d78c3e..daa9cecda 100644 --- a/src/main.rs +++ b/src/main.rs @@ -39,8 +39,8 @@ use librespot::{ #[cfg(feature = "spotty")] mod spotty; -#[cfg(feature = "spotty")] -use spotty::LMS; +// #[cfg(feature = "spotty")] +// use spotty::LMS; const VERSION: &str = concat!(env!("CARGO_PKG_NAME"), " v", env!("CARGO_PKG_VERSION")); @@ -248,7 +248,7 @@ struct Setup { scopes: Option, get_token: bool, save_token: Option, - lms: LMS, + // lms: LMS, } fn get_setup() -> Setup { @@ -1875,11 +1875,11 @@ fn get_setup() -> Setup { let save_token = opt_str(SAVE_TOKEN).unwrap_or_else(|| "".to_string()); let client_id = opt_str(CLIENT_ID).unwrap_or_else(|| include_str!("client_id.txt").to_string()); - let lms = LMS::new( - opt_str(LYRION_MUSIC_SERVER), - opt_str(PLAYER_MAC), - opt_str(LMS_AUTH), - ); + // let lms = LMS::new( + // opt_str(LYRION_MUSIC_SERVER), + // opt_str(PLAYER_MAC), + // opt_str(LMS_AUTH), + // ); Setup { format: AudioFormat::default(), @@ -1918,7 +1918,7 @@ fn get_setup() -> Setup { Some(client_id) }, scopes: opt_str(SCOPE), - lms, + // lms, } } diff --git a/src/spotty.rs b/src/spotty.rs index 5d6d13b54..3a8c0335d 100644 --- a/src/spotty.rs +++ b/src/spotty.rs @@ -16,7 +16,7 @@ use librespot::playback::config::{AudioFormat, PlayerConfig}; use librespot::playback::mixer::NoOpVolume; use librespot::playback::player::{Player, PlayerEvent}; -const VERSION: &str = concat!(env!("CARGO_PKG_NAME"), " v", env!("CARGO_PKG_VERSION")); +// const VERSION: &str = concat!(env!("CARGO_PKG_NAME"), " v", env!("CARGO_PKG_VERSION")); const SCOPES: &str = "user-read-private,playlist-read-private,playlist-read-collaborative,playlist-modify-public,playlist-modify-private,user-follow-modify,user-follow-read,user-library-read,user-library-modify,user-top-read,user-read-recently-played";