Skip to content

Commit

Permalink
Allowed new clippy dead_code checks on proxies and testing structs
Browse files Browse the repository at this point in the history
  • Loading branch information
yoep authored and azasypkin committed Jun 21, 2024
1 parent 4b7d274 commit 30c1670
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cast/proxies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ pub mod media {
}

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct StatusReply {
#[serde(rename = "requestId", default)]
pub request_id: u32,
Expand Down Expand Up @@ -368,6 +369,7 @@ pub mod media {
}

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct InvalidRequestReply {
#[serde(rename = "requestId")]
pub request_id: u32,
Expand Down Expand Up @@ -441,6 +443,7 @@ pub mod receiver {
}

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct StatusReply {
#[serde(rename = "requestId")]
pub request_id: u32,
Expand Down Expand Up @@ -502,6 +505,7 @@ pub mod receiver {
}

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct LaunchErrorReply {
#[serde(rename = "requestId")]
pub request_id: u32,
Expand All @@ -513,6 +517,7 @@ pub mod receiver {
}

#[derive(Deserialize, Debug)]
#[allow(dead_code)]
pub struct InvalidRequestReply {
#[serde(rename = "requestId")]
pub request_id: u32,
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 30c1670

Please sign in to comment.