correct compilation warning in pmoqobuz
This commit is contained in:
@@ -18,11 +18,11 @@ struct UserInfo {
|
|||||||
#[serde(deserialize_with = "crate::models::deserialize_id")]
|
#[serde(deserialize_with = "crate::models::deserialize_id")]
|
||||||
id: String,
|
id: String,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
email: Option<String>,
|
_email: Option<String>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
firstname: Option<String>,
|
_firstname: Option<String>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
lastname: Option<String>,
|
_lastname: Option<String>,
|
||||||
credential: CredentialInfo,
|
credential: CredentialInfo,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,9 +13,9 @@ struct PaginatedResponse<T> {
|
|||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
total: Option<u32>,
|
total: Option<u32>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
limit: Option<u32>,
|
_limit: Option<u32>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
offset: Option<u32>,
|
_offset: Option<u32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Réponse de l'endpoint /album/get
|
/// Réponse de l'endpoint /album/get
|
||||||
@@ -91,7 +91,7 @@ struct ImageResponse {
|
|||||||
|
|
||||||
/// Réponse genre
|
/// Réponse genre
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
struct GenreResponse {
|
pub(crate) struct GenreResponse {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
id: Option<u32>,
|
id: Option<u32>,
|
||||||
name: String,
|
name: String,
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ struct PaginatedResponse<T> {
|
|||||||
|
|
||||||
/// Réponse de l'endpoint /favorite/getUserFavorites
|
/// Réponse de l'endpoint /favorite/getUserFavorites
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
pub(crate) struct FavoritesResponse {
|
pub struct FavoritesResponse {
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
albums: Option<PaginatedResponse<AlbumResponse>>,
|
albums: Option<PaginatedResponse<AlbumResponse>>,
|
||||||
#[serde(default)]
|
#[serde(default)]
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ impl QobuzClient {
|
|||||||
|
|
||||||
// Optimization: Login once with first secret to get auth token
|
// Optimization: Login once with first secret to get auth token
|
||||||
// Then test all secrets using the same token
|
// Then test all secrets using the same token
|
||||||
if let Some((first_timezone, first_secret)) = secrets.first() {
|
if let Some((_first_timezone, first_secret)) = secrets.first() {
|
||||||
if let Ok(temp_api) =
|
if let Ok(temp_api) =
|
||||||
QobuzApi::with_raw_secret(&app_id, first_secret)
|
QobuzApi::with_raw_secret(&app_id, first_secret)
|
||||||
{
|
{
|
||||||
|
|||||||
1009
pmoqobuz/src/client.rs-e
Normal file
1009
pmoqobuz/src/client.rs-e
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user