Skip to content

Commit 64ca9b9

Browse files
committed
fix ci
1 parent 17ce6ec commit 64ca9b9

File tree

1 file changed

+3
-3
lines changed
  • library/std/src/os/windows/net

1 file changed

+3
-3
lines changed

library/std/src/os/windows/net/addr.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ pub fn sockaddr_un(path: &Path) -> io::Result<(c::sockaddr_un, c_int)> {
3434
// null byte for pathname addresses is already there because we zeroed the
3535
// struct
3636

37-
let mut len = sun_path_offset(&addr) + bytes.len();
37+
let mut len = sun_path_offset() + bytes.len();
3838
match bytes.first() {
3939
Some(&0) | None => {}
4040
Some(_) => len += 1,
4141
}
4242
Ok((addr, len as _))
4343
}
44-
fn sun_path_offset(addr: &c::sockaddr_un) -> usize {
44+
fn sun_path_offset() -> usize {
4545
offset_of!(c::sockaddr_un, sun_path)
4646
}
4747
#[allow(dead_code)]
@@ -65,7 +65,7 @@ impl SocketAddr {
6565
if len == 0 {
6666
// When there is a datagram from unnamed unix socket
6767
// linux returns zero bytes of address
68-
len = sun_path_offset(&addr) as c_int; // i.e. zero-length address
68+
len = sun_path_offset() as c_int; // i.e. zero-length address
6969
} else if addr.sun_family != c::AF_UNIX {
7070
return Err(io::Error::new(
7171
io::ErrorKind::InvalidInput,

0 commit comments

Comments
 (0)