correct compilation warning in pmoqobuz
This commit is contained in:
@@ -18,11 +18,11 @@ struct UserInfo {
|
||||
#[serde(deserialize_with = "crate::models::deserialize_id")]
|
||||
id: String,
|
||||
#[serde(default)]
|
||||
email: Option<String>,
|
||||
_email: Option<String>,
|
||||
#[serde(default)]
|
||||
firstname: Option<String>,
|
||||
_firstname: Option<String>,
|
||||
#[serde(default)]
|
||||
lastname: Option<String>,
|
||||
_lastname: Option<String>,
|
||||
credential: CredentialInfo,
|
||||
}
|
||||
|
||||
|
||||
@@ -13,9 +13,9 @@ struct PaginatedResponse<T> {
|
||||
#[serde(default)]
|
||||
total: Option<u32>,
|
||||
#[serde(default)]
|
||||
limit: Option<u32>,
|
||||
_limit: Option<u32>,
|
||||
#[serde(default)]
|
||||
offset: Option<u32>,
|
||||
_offset: Option<u32>,
|
||||
}
|
||||
|
||||
/// Réponse de l'endpoint /album/get
|
||||
@@ -91,7 +91,7 @@ struct ImageResponse {
|
||||
|
||||
/// Réponse genre
|
||||
#[derive(Debug, Deserialize)]
|
||||
struct GenreResponse {
|
||||
pub(crate) struct GenreResponse {
|
||||
#[serde(default)]
|
||||
id: Option<u32>,
|
||||
name: String,
|
||||
|
||||
@@ -15,7 +15,7 @@ struct PaginatedResponse<T> {
|
||||
|
||||
/// Réponse de l'endpoint /favorite/getUserFavorites
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub(crate) struct FavoritesResponse {
|
||||
pub struct FavoritesResponse {
|
||||
#[serde(default)]
|
||||
albums: Option<PaginatedResponse<AlbumResponse>>,
|
||||
#[serde(default)]
|
||||
|
||||
@@ -260,7 +260,7 @@ impl QobuzClient {
|
||||
|
||||
// Optimization: Login once with first secret to get auth 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) =
|
||||
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