From 348944b7fec728847099c7f4d28b7fbdc33f9be5 Mon Sep 17 00:00:00 2001 From: Maxwell Borden Date: Sat, 25 May 2024 14:46:04 +0200 Subject: [PATCH 1/2] Derive common traits for NamedPipeInfo struct --- tokio/src/net/windows/named_pipe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/net/windows/named_pipe.rs b/tokio/src/net/windows/named_pipe.rs index 98e63f0c450..1f96e4734f3 100644 --- a/tokio/src/net/windows/named_pipe.rs +++ b/tokio/src/net/windows/named_pipe.rs @@ -2626,7 +2626,7 @@ pub enum PipeEnd { /// Information about a named pipe. /// /// Constructed through [`NamedPipeServer::info`] or [`NamedPipeClient::info`]. -#[derive(Debug)] +#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] #[non_exhaustive] pub struct PipeInfo { /// Indicates the mode of a named pipe. From 405b7736606571b1136899b35e052cec6416d8d9 Mon Sep 17 00:00:00 2001 From: Maxwell Borden Date: Sat, 25 May 2024 17:36:02 +0200 Subject: [PATCH 2/2] Remove extra trait derives --- tokio/src/net/windows/named_pipe.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/net/windows/named_pipe.rs b/tokio/src/net/windows/named_pipe.rs index 1f96e4734f3..81148482537 100644 --- a/tokio/src/net/windows/named_pipe.rs +++ b/tokio/src/net/windows/named_pipe.rs @@ -2626,7 +2626,7 @@ pub enum PipeEnd { /// Information about a named pipe. /// /// Constructed through [`NamedPipeServer::info`] or [`NamedPipeClient::info`]. -#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] +#[derive(Debug, Clone)] #[non_exhaustive] pub struct PipeInfo { /// Indicates the mode of a named pipe.