Skip to content

Commit

Permalink
Derive Clone for SockAddr
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaniel-bennett committed May 14, 2022
1 parent 071cfb9 commit f9c1aef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/sockaddr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ use crate::sys::{
///
/// `SockAddr`s may be constructed directly to and from the standard library
/// [`SocketAddr`], [`SocketAddrV4`], and [`SocketAddrV6`] types.
#[derive(Clone)]
pub struct SockAddr {
storage: sockaddr_storage,
len: socklen_t,
Expand Down

0 comments on commit f9c1aef

Please sign in to comment.