Skip to content

Commit 08630ae

Browse files
committed
fmt
1 parent dd4555d commit 08630ae

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

library/std/src/sys/net/connection/socket/windows.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,14 @@ pub struct Socket(OwnedSocket);
120120
impl Socket {
121121
pub fn new_unix() -> io::Result<Socket> {
122122
let socket = unsafe {
123-
match WSASocketW(AF_UNIX as i32, SOCK_STREAM, 0, ptr::null_mut(), 0, WSA_FLAG_OVERLAPPED) {
123+
match WSASocketW(
124+
AF_UNIX as i32,
125+
SOCK_STREAM,
126+
0,
127+
ptr::null_mut(),
128+
0,
129+
WSA_FLAG_OVERLAPPED,
130+
) {
124131
INVALID_SOCKET => Err(last_error()),
125132
n => Ok(Socket::from_raw(n)),
126133
}

library/std/src/sys/pal/windows/c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use crate::os::raw::c_char;
1515

1616
pub type WCHAR = u16;
1717
pub const AF_UNIX: u16 = 1;
18-
#[derive(Clone,Copy)]
18+
#[derive(Clone, Copy)]
1919
#[repr(C)]
2020
pub struct sockaddr_un {
2121
pub sun_family: ADDRESS_FAMILY,

0 commit comments

Comments
 (0)