Clippy
This commit is contained in:
@@ -97,16 +97,6 @@ pub struct LyricsResult {
|
||||
pub synced_lyrics: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
|
||||
pub struct Album {
|
||||
pub id: i32,
|
||||
pub name: String,
|
||||
pub album_artist: String,
|
||||
pub year: Option<i32>,
|
||||
pub genre: Option<String>,
|
||||
pub musicbrainz_id: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
|
||||
pub struct Track {
|
||||
pub id: i32,
|
||||
@@ -120,18 +110,6 @@ pub struct Track {
|
||||
pub codec: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize)]
|
||||
pub struct ArtistDetail {
|
||||
pub artist: Artist,
|
||||
pub albums: Vec<Album>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize)]
|
||||
pub struct AlbumDetail {
|
||||
pub album: Album,
|
||||
pub tracks: Vec<Track>,
|
||||
}
|
||||
|
||||
/// Album detail from MusicBrainz (the primary album view).
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize)]
|
||||
pub struct MbAlbumDetail {
|
||||
@@ -182,17 +160,6 @@ pub struct TrackResult {
|
||||
pub score: u8,
|
||||
}
|
||||
|
||||
// --- Watchlist ---
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize)]
|
||||
pub struct WatchListEntry {
|
||||
pub id: i32,
|
||||
pub item_type: String,
|
||||
pub name: String,
|
||||
pub artist_name: Option<String>,
|
||||
pub status: String,
|
||||
}
|
||||
|
||||
// --- Downloads ---
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user