From 0a85a9662d30139c779ea49a59be30db0f292b5d Mon Sep 17 00:00:00 2001 From: Maxwell Borden Date: Sat, 25 May 2024 22:14:59 +0200 Subject: [PATCH] net: implement `Clone` for `NamedPipeInfo` (#6586) --- 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..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)] +#[derive(Debug, Clone)] #[non_exhaustive] pub struct PipeInfo { /// Indicates the mode of a named pipe.