Ignore a clippy lint
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 2m0s
Cargo CI / Lint (pull_request) Successful in 1m6s

This commit is contained in:
Wojciech Kozlowski 2025-01-02 22:07:50 +01:00
parent 42cf4bf1e5
commit a9a3de0458

View File

@ -29,6 +29,10 @@ impl fmt::Display for Error {
pub type MbApiResult = Result<MbReturn, MbApiError>;
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)]
pub enum MbReturn {
Match(EntityMatches),