diff --git a/src/external/musicbrainz/api/lookup.rs b/src/external/musicbrainz/api/lookup.rs index 6405ad6..088ec40 100644 --- a/src/external/musicbrainz/api/lookup.rs +++ b/src/external/musicbrainz/api/lookup.rs @@ -111,7 +111,7 @@ impl From for LookupArtistResponse { #[derive(Debug, PartialEq, Eq)] pub struct LookupArtistResponseReleaseGroup { pub id: Mbid, - pub title: String, + pub title: AlbumId, pub first_release_date: AlbumDate, pub primary_type: AlbumPrimaryType, pub secondary_types: Vec, @@ -131,7 +131,7 @@ impl From for LookupArtistResponseR fn from(value: DeserializeLookupArtistResponseReleaseGroup) -> Self { LookupArtistResponseReleaseGroup { id: value.id.into(), - title: value.title, + title: value.title.into(), first_release_date: value.first_release_date.into(), primary_type: value.primary_type.into(), secondary_types: value.secondary_types.into_iter().map(Into::into).collect(), @@ -217,7 +217,7 @@ mod tests { let release_group = LookupArtistResponseReleaseGroup { 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, primary_type: de_release_group.primary_type.0, secondary_types: de_release_group diff --git a/src/tui/app/machine/match_state.rs b/src/tui/app/machine/match_state.rs index eb07445..5c0a914 100644 --- a/src/tui/app/machine/match_state.rs +++ b/src/tui/app/machine/match_state.rs @@ -415,7 +415,7 @@ mod tests { } #[test] - fn select_manual_input() { + fn select_manual_input_empty() { let matches = AppMachine::match_state(inner(music_hoard(vec![])), match_state(Some(album_match()))); @@ -428,6 +428,6 @@ mod tests { let app = matches.select(); let input = app.mode().unwrap_input(); - input.confirm().unwrap_match(); + input.confirm().unwrap_error(); } }