From da54c331f54bc7fe32645daf82bae2fea672beef Mon Sep 17 00:00:00 2001 From: auronandace Date: Tue, 14 Jul 2026 09:29:44 +0100 Subject: [PATCH] revert two casts --- src/platform/redox/socket.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/platform/redox/socket.rs b/src/platform/redox/socket.rs index 4460fafe20..e7727dee5a 100644 --- a/src/platform/redox/socket.rs +++ b/src/platform/redox/socket.rs @@ -567,7 +567,7 @@ impl PalSocket for Sys { // The maximum length of the address maxlen, // The first NUL byte, if any - unsafe { strnlen(&raw const data.sun_path, maxlen as size_t) }, + unsafe { strnlen(&data.sun_path as *const _, maxlen as size_t) }, ); let addr = @@ -653,7 +653,7 @@ impl PalSocket for Sys { // The maximum length of the address maxlen, // The first NUL byte, if any - unsafe { strnlen(&raw const data.sun_path, maxlen as size_t) }, + unsafe { strnlen(&data.sun_path as *const _, maxlen as size_t) }, ); let addr = @@ -844,7 +844,7 @@ impl PalSocket for Sys { if msg.is_null() { return Err(Errno(EINVAL)); } - let mut mhdr = unsafe { &mut *msg }; + let mhdr = unsafe { &mut *msg }; let iovs_slice: &[iovec] = if mhdr.msg_iov.is_null() || mhdr.msg_iovlen == 0 { &[] } else {