We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dee021e commit d07960fCopy full SHA for d07960f
src/socket.rs
@@ -101,7 +101,7 @@ impl SocketAddrCRepr {
101
}
102
103
fn addr2raw(addr: &SocketAddr) -> (SocketAddrCRepr, c::socklen_t) {
104
- match addr {
+ match *addr {
105
SocketAddr::V4(addr) => {
106
// `s_addr` is stored as BE on all machine and the array is in BE order.
107
// So the native endian conversion method is used so that it's never swapped.
0 commit comments