Skip to content

Commit 91aab08

Browse files
committed
Fix SockaddrLike::len on non-BSD
1 parent 10f518a commit 91aab08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sys/socket/addr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ pub trait SockaddrLike: private::SockaddrLikePriv {
10371037
// No robust default implementation is possible without an
10381038
// sa_len field. Implementors with a variable size must
10391039
// override this method.
1040-
mem::size_of_val(&self) as libc::socklen_t
1040+
mem::size_of_val(self) as libc::socklen_t
10411041
}
10421042
}
10431043
}

0 commit comments

Comments
 (0)