chore(toolchain): update (#1712)

* [create-pull-request] automated change

* Remove unused enums

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Henrik Friedrichsen
2025-09-29 22:35:59 +02:00
committed by GitHub
parent e712c17735
commit 6dcdd8dba8
4 changed files with 2 additions and 15 deletions

View File

@@ -1,3 +1,3 @@
[toolchain]
channel = "1.89.0"
channel = "1.90.0"
components = ["rustfmt", "clippy", "rust-analyzer"]

View File

@@ -99,9 +99,3 @@ pub fn create_credentials() -> Result<RespotCredentials, String> {
.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<String>,
}

View File

@@ -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 {

View File

@@ -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");