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:
committed by
GitHub
parent
e712c17735
commit
6dcdd8dba8
@@ -1,3 +1,3 @@
|
||||
[toolchain]
|
||||
channel = "1.89.0"
|
||||
channel = "1.90.0"
|
||||
components = ["rustfmt", "clippy", "rust-analyzer"]
|
||||
|
||||
@@ -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>,
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user