Skip to content

Commit 483e331

Browse files
committed
hurd: Fix clippy::ptr_as_ptr warnings.
1 parent c5ddc70 commit 483e331

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/unix/hurd/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3424,7 +3424,7 @@ const_fn! {
34243424
f! {
34253425
pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
34263426
if (*mhdr).msg_controllen as usize >= mem::size_of::<cmsghdr>() {
3427-
(*mhdr).msg_control as *mut cmsghdr
3427+
(*mhdr).msg_control.cast::<cmsghdr>()
34283428
} else {
34293429
core::ptr::null_mut::<cmsghdr>()
34303430
}
@@ -3453,7 +3453,7 @@ f! {
34533453
{
34543454
core::ptr::null_mut::<cmsghdr>()
34553455
} else {
3456-
next as *mut cmsghdr
3456+
next.cast::<cmsghdr>()
34573457
}
34583458
}
34593459

0 commit comments

Comments
 (0)