From c955ab8799ef23f27c9c222a4fff8743326682a3 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 7 Sep 2022 11:36:12 -0700 Subject: [PATCH] Resolve remaining clippy warnings --- src/config.rs | 1 + src/server.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/config.rs b/src/config.rs index 7404e12..82f79ff 100644 --- a/src/config.rs +++ b/src/config.rs @@ -227,6 +227,7 @@ pub trait Config: Sized + Send + Sync + UnwindSafe + RefUnwindSafe + 'static { } /// The result of the [`server_list_ping`](Config::server_list_ping) callback. +#[allow(clippy::large_enum_variant)] #[derive(Debug)] pub enum ServerListPing<'a> { /// Responds to the server list ping with the given information. diff --git a/src/server.rs b/src/server.rs index d683df4..33c4a83 100644 --- a/src/server.rs +++ b/src/server.rs @@ -141,6 +141,7 @@ pub(crate) type S2cPacketChannels = (Sender, Receiver, Receiver); /// Messages sent to packet encoders. +#[allow(clippy::large_enum_variant)] #[derive(Clone, Debug)] pub(crate) enum S2cPlayMessage { /// Queue a play packet for sending.