Skip to content

Commit

Permalink
Fix references
Browse files Browse the repository at this point in the history
  • Loading branch information
faern committed Nov 23, 2020
1 parent e7768a2 commit 06ab86a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ impl SocketAddrCRepr {

fn addr2raw(addr: &SocketAddr) -> (SocketAddrCRepr, c::socklen_t) {
match addr {
SocketAddr::V4(v4) => addr2raw_v4(v4),
SocketAddr::V6(v6) => addr2raw_v6(v6),
&SocketAddr::V4(ref v4) => addr2raw_v4(v4),
&SocketAddr::V6(ref v6) => addr2raw_v6(v6),
}
}

Expand Down

0 comments on commit 06ab86a

Please sign in to comment.