Skip to content

Commit d07960f

Browse files
committed
Fix types... again
1 parent dee021e commit d07960f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/socket.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ impl SocketAddrCRepr {
101101
}
102102

103103
fn addr2raw(addr: &SocketAddr) -> (SocketAddrCRepr, c::socklen_t) {
104-
match addr {
104+
match *addr {
105105
SocketAddr::V4(addr) => {
106106
// `s_addr` is stored as BE on all machine and the array is in BE order.
107107
// So the native endian conversion method is used so that it's never swapped.

0 commit comments

Comments
 (0)