This commit is contained in:
Wojciech Kozlowski 2024-09-22 16:16:23 +02:00
parent 87fc692278
commit 7c381bece0
2 changed files with 5 additions and 5 deletions

View File

@ -111,7 +111,7 @@ impl From<DeserializeLookupArtistResponse> for LookupArtistResponse {
#[derive(Debug, PartialEq, Eq)] #[derive(Debug, PartialEq, Eq)]
pub struct LookupArtistResponseReleaseGroup { pub struct LookupArtistResponseReleaseGroup {
pub id: Mbid, pub id: Mbid,
pub title: String, pub title: AlbumId,
pub first_release_date: AlbumDate, pub first_release_date: AlbumDate,
pub primary_type: AlbumPrimaryType, pub primary_type: AlbumPrimaryType,
pub secondary_types: Vec<AlbumSecondaryType>, pub secondary_types: Vec<AlbumSecondaryType>,
@ -131,7 +131,7 @@ impl From<DeserializeLookupArtistResponseReleaseGroup> for LookupArtistResponseR
fn from(value: DeserializeLookupArtistResponseReleaseGroup) -> Self { fn from(value: DeserializeLookupArtistResponseReleaseGroup) -> Self {
LookupArtistResponseReleaseGroup { LookupArtistResponseReleaseGroup {
id: value.id.into(), id: value.id.into(),
title: value.title, title: value.title.into(),
first_release_date: value.first_release_date.into(), first_release_date: value.first_release_date.into(),
primary_type: value.primary_type.into(), primary_type: value.primary_type.into(),
secondary_types: value.secondary_types.into_iter().map(Into::into).collect(), secondary_types: value.secondary_types.into_iter().map(Into::into).collect(),
@ -217,7 +217,7 @@ mod tests {
let release_group = LookupArtistResponseReleaseGroup { let release_group = LookupArtistResponseReleaseGroup {
id: de_release_group.id.0, id: de_release_group.id.0,
title: de_release_group.title, title: de_release_group.title.into(),
first_release_date: de_release_group.first_release_date.0, first_release_date: de_release_group.first_release_date.0,
primary_type: de_release_group.primary_type.0, primary_type: de_release_group.primary_type.0,
secondary_types: de_release_group secondary_types: de_release_group

View File

@ -415,7 +415,7 @@ mod tests {
} }
#[test] #[test]
fn select_manual_input() { fn select_manual_input_empty() {
let matches = let matches =
AppMachine::match_state(inner(music_hoard(vec![])), match_state(Some(album_match()))); AppMachine::match_state(inner(music_hoard(vec![])), match_state(Some(album_match())));
@ -428,6 +428,6 @@ mod tests {
let app = matches.select(); let app = matches.select();
let input = app.mode().unwrap_input(); let input = app.mode().unwrap_input();
input.confirm().unwrap_match(); input.confirm().unwrap_error();
} }
} }