Skip to content

Commit

Permalink
Silence a few warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelherger committed Sep 20, 2024
1 parent 58e4c97 commit d33474c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"));

Expand Down Expand Up @@ -248,7 +248,7 @@ struct Setup {
scopes: Option<String>,
get_token: bool,
save_token: Option<String>,
lms: LMS,
// lms: LMS,
}

fn get_setup() -> Setup {
Expand Down Expand Up @@ -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(),
Expand Down Expand Up @@ -1918,7 +1918,7 @@ fn get_setup() -> Setup {
Some(client_id)
},
scopes: opt_str(SCOPE),
lms,
// lms,
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/spotty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit d33474c

Please sign in to comment.