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

This commit is contained in:
xumaple 2025-06-30 09:31:04 -04:00 committed by GitHub
parent e2b175848b
commit 69290a6432
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 {