Skip to content

Commit f9c1aef

Browse files
Derive Clone for SockAddr
1 parent 071cfb9 commit f9c1aef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sockaddr.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use crate::sys::{
1414
///
1515
/// `SockAddr`s may be constructed directly to and from the standard library
1616
/// [`SocketAddr`], [`SocketAddrV4`], and [`SocketAddrV6`] types.
17+
#[derive(Clone)]
1718
pub struct SockAddr {
1819
storage: sockaddr_storage,
1920
len: socklen_t,

0 commit comments

Comments
 (0)