From 067b889cc9161d8515356aefb1c037910102add8 Mon Sep 17 00:00:00 2001 From: kangalioo Date: Thu, 10 Nov 2022 23:01:10 +0100 Subject: [PATCH] Silence clippy false positive (#2279) Reported in https://github.com/rust-lang/rust-clippy/issues/9798 --- src/model/channel/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/model/channel/mod.rs b/src/model/channel/mod.rs index 4e41d8f608c..16a73e58682 100644 --- a/src/model/channel/mod.rs +++ b/src/model/channel/mod.rs @@ -44,6 +44,7 @@ pub type AttachmentType<'a> = crate::builder::CreateAttachment; #[derive(Clone, Debug, Serialize)] #[serde(untagged)] #[non_exhaustive] +#[allow(clippy::large_enum_variant)] // https://github.com/rust-lang/rust-clippy/issues/9798 pub enum Channel { /// A channel within a [`Guild`]. Guild(GuildChannel),