Make MBID part of the artist identifier to disambiguate MB clashes #241

Merged
wojtek merged 6 commits from 231---differentiate-release-groups-with-same-title-but-different-type-clash into main 2025-01-02 22:30:48 +01:00
Showing only changes of commit a9a3de0458 - Show all commits

View File

@ -29,6 +29,10 @@ impl fmt::Display for Error {
pub type MbApiResult = Result<MbReturn, MbApiError>; pub type MbApiResult = Result<MbReturn, MbApiError>;
pub type ResultSender = mpsc::Sender<MbApiResult>; pub type ResultSender = mpsc::Sender<MbApiResult>;
// The largest variant is Match(EntityMatches::Album(AlbumMatches)) since that contains both the
// ArtistId and Albumid. However, that is also the most common MbReturn expected. Therefore, we
// allow this large enum variant.
#[allow(clippy::large_enum_variant)]
#[derive(Clone, Debug, PartialEq, Eq)] #[derive(Clone, Debug, PartialEq, Eq)]
pub enum MbReturn { pub enum MbReturn {
Match(EntityMatches), Match(EntityMatches),