From 30c16707dee592b963f1325663fb590da735cb10 Mon Sep 17 00:00:00 2001 From: yoep Date: Mon, 17 Jun 2024 09:57:46 +0200 Subject: [PATCH] Allowed new clippy `dead_code` checks on proxies and testing structs --- src/cast/proxies.rs | 5 +++++ src/lib.rs | 1 + 2 files changed, 6 insertions(+) diff --git a/src/cast/proxies.rs b/src/cast/proxies.rs index 26d73d786..731727e68 100644 --- a/src/cast/proxies.rs +++ b/src/cast/proxies.rs @@ -339,6 +339,7 @@ pub mod media { } #[derive(Deserialize, Debug)] + #[allow(dead_code)] pub struct StatusReply { #[serde(rename = "requestId", default)] pub request_id: u32, @@ -368,6 +369,7 @@ pub mod media { } #[derive(Deserialize, Debug)] + #[allow(dead_code)] pub struct InvalidRequestReply { #[serde(rename = "requestId")] pub request_id: u32, @@ -441,6 +443,7 @@ pub mod receiver { } #[derive(Deserialize, Debug)] + #[allow(dead_code)] pub struct StatusReply { #[serde(rename = "requestId")] pub request_id: u32, @@ -502,6 +505,7 @@ pub mod receiver { } #[derive(Deserialize, Debug)] + #[allow(dead_code)] pub struct LaunchErrorReply { #[serde(rename = "requestId")] pub request_id: u32, @@ -513,6 +517,7 @@ pub mod receiver { } #[derive(Deserialize, Debug)] + #[allow(dead_code)] pub struct InvalidRequestReply { #[serde(rename = "requestId")] pub request_id: u32, diff --git a/src/lib.rs b/src/lib.rs index 44123561e..f64a2e73c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -399,6 +399,7 @@ pub(crate) mod tests { /// Represents a TCP message containing a received payload from the sender. #[derive(Debug, Clone)] + #[allow(dead_code)] pub struct TcpMessage { /// The known length of the message. pub message_length: u32,