Skip to content

Commit

Permalink
Ran rustfmt on windows.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
traies committed Feb 25, 2025
1 parent a0b73f4 commit c5646ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ pub(crate) fn unix_sockaddr(path: &Path) -> io::Result<SockAddr> {
storage.sun_family = crate::sys::AF_UNIX as sa_family_t;
// `storage` was initialized to zero above, so the path is
// already null terminated.
let bytes: &[i8] = unsafe { slice::from_raw_parts(bytes.as_ptr().cast(), bytes.len()) };
let bytes: &[i8] = unsafe { slice::from_raw_parts(bytes.as_ptr().cast(), bytes.len()) };
storage.sun_path[..bytes.len()].copy_from_slice(bytes);

let base = storage as *const _ as usize;
Expand Down

0 comments on commit c5646ef

Please sign in to comment.