Skip to content

Commit

Permalink
Fix attribute name.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed May 11, 2022
1 parent a5077f1 commit 5c60951
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/os/windows/io/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ fn test_niche_optimizations_socket() {
assert_eq!(size_of::<Option<OwnedSocket>>(), size_of::<RawSocket>());
assert_eq!(size_of::<Option<BorrowedSocket<'static>>>(), size_of::<RawSocket>(),);
unsafe {
#[cfg(target_pointer_size = "32")]
#[cfg(target_pointer_width = "32")]
let (min, max) = (i32::MIN as u32, i32::MAX as u32);
#[cfg(target_pointer_size = "64")]
#[cfg(target_pointer_width = "64")]
let (min, max) = (i64::MIN as u64, i64::MAX as u64);

assert_eq!(OwnedSocket::from_raw_socket(min).into_raw_socket(), min);
Expand Down

0 comments on commit 5c60951

Please sign in to comment.