From 6dcdd8dba851f861d5b323dc9e14d080041d0a22 Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Mon, 29 Sep 2025 22:35:59 +0200 Subject: [PATCH] chore(toolchain): update (#1712) * [create-pull-request] automated change * Remove unused enums --------- Co-authored-by: github-actions[bot] --- rust-toolchain.toml | 2 +- src/authentication.rs | 6 ------ src/command.rs | 7 ------- src/spotify.rs | 2 +- 4 files changed, 2 insertions(+), 15 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 8f0ca5d..db034fb 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.89.0" +channel = "1.90.0" components = ["rustfmt", "clippy", "rust-analyzer"] diff --git a/src/authentication.rs b/src/authentication.rs index adf45e8..97e853a 100644 --- a/src/authentication.rs +++ b/src/authentication.rs @@ -99,9 +99,3 @@ pub fn create_credentials() -> Result { .map(|token| RespotCredentials::with_access_token(token.access_token)) .map_err(|e| e.to_string()) } - -#[derive(Serialize, Deserialize, Debug)] -pub struct AuthResponse { - pub credentials: RespotCredentials, - pub error: Option, -} diff --git a/src/command.rs b/src/command.rs index e31f24d..d0e7c58 100644 --- a/src/command.rs +++ b/src/command.rs @@ -6,13 +6,6 @@ use std::sync::OnceLock; use strum_macros::Display; -#[derive(Clone, Serialize, Deserialize, Debug)] -pub enum SeekInterval { - Forward, - Backwards, - Custom(usize), -} - #[derive(Display, Clone, Serialize, Deserialize, Debug)] #[strum(serialize_all = "lowercase")] pub enum TargetMode { diff --git a/src/spotify.rs b/src/spotify.rs index 8de2be1..56cd5a9 100644 --- a/src/spotify.rs +++ b/src/spotify.rs @@ -178,7 +178,7 @@ impl Spotify { audio_cache_path, cfg.values() .audio_cache_size - .map(|size| (size as u64 * 1048576)), + .map(|size| size as u64 * 1048576), ) .expect("Could not create cache"); debug!("opening spotify session");