From a9a3de0458ba096d79b8c799bca1a26e86c02697 Mon Sep 17 00:00:00 2001 From: Wojciech Kozlowski Date: Thu, 2 Jan 2025 22:07:50 +0100 Subject: [PATCH] Ignore a clippy lint --- src/tui/lib/interface/musicbrainz/daemon/mod.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tui/lib/interface/musicbrainz/daemon/mod.rs b/src/tui/lib/interface/musicbrainz/daemon/mod.rs index eda65c9..42eabaa 100644 --- a/src/tui/lib/interface/musicbrainz/daemon/mod.rs +++ b/src/tui/lib/interface/musicbrainz/daemon/mod.rs @@ -29,6 +29,10 @@ impl fmt::Display for Error { pub type MbApiResult = Result; pub type ResultSender = mpsc::Sender; +// 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),