Skip to content

Commit 69290a6

Browse files
authored
net: derive Clone for net::unix::SocketAddr (#7422)
1 parent e2b1758 commit 69290a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tokio/src/net/unix/socketaddr.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ use std::path::Path;
66
/// This type is a thin wrapper around [`std::os::unix::net::SocketAddr`]. You
77
/// can convert to and from the standard library `SocketAddr` type using the
88
/// [`From`] trait.
9+
#[derive(Clone)]
910
pub struct SocketAddr(pub(super) std::os::unix::net::SocketAddr);
1011

1112
impl SocketAddr {

0 commit comments

Comments
 (0)