diff options
| author | Pavel Grigorenko <grigorenkopv@ya.ru> | 2024-02-24 16:02:17 +0300 |
|---|---|---|
| committer | Pavel Grigorenko <grigorenkopv@ya.ru> | 2024-02-24 16:02:17 +0300 |
| commit | ff187a92d84f352670a9a63e8519eac114456d38 (patch) | |
| tree | bb16e4e323011af089b5e934ca5a765216567047 /library/std/src/sys/pal/unix/net.rs | |
| parent | 8f359beca4e58bc3ae795a666301a8f47023044c (diff) | |
| download | rust-ff187a92d84f352670a9a63e8519eac114456d38.tar.gz rust-ff187a92d84f352670a9a63e8519eac114456d38.zip | |
library: use `addr_of!`
Diffstat (limited to 'library/std/src/sys/pal/unix/net.rs')
| -rw-r--r-- | library/std/src/sys/pal/unix/net.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/std/src/sys/pal/unix/net.rs b/library/std/src/sys/pal/unix/net.rs index 1b6a6bb2c5c..f4ae7d21781 100644 --- a/library/std/src/sys/pal/unix/net.rs +++ b/library/std/src/sys/pal/unix/net.rs @@ -316,7 +316,7 @@ impl Socket { buf.as_mut_ptr() as *mut c_void, buf.len(), flags, - &mut storage as *mut _ as *mut _, + core::ptr::addr_of_mut!(storage) as *mut _, &mut addrlen, ) })?; |
