net: derive Clone for net::unix::SocketAddr (#7422)

This commit is contained in:
xumaple
2025-06-30 15:31:04 +02:00
committed by GitHub
parent e2b175848b
commit 69290a6432
+1
View File
@@ -6,6 +6,7 @@ use std::path::Path;
/// This type is a thin wrapper around [`std::os::unix::net::SocketAddr`]. You
/// can convert to and from the standard library `SocketAddr` type using the
/// [`From`] trait.
#[derive(Clone)]
pub struct SocketAddr(pub(super) std::os::unix::net::SocketAddr);
impl SocketAddr {