We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clippy::ptr_as_ptr
1 parent c5ddc70 commit 483e331Copy full SHA for 483e331
src/unix/hurd/mod.rs
@@ -3424,7 +3424,7 @@ const_fn! {
3424
f! {
3425
pub fn CMSG_FIRSTHDR(mhdr: *const msghdr) -> *mut cmsghdr {
3426
if (*mhdr).msg_controllen as usize >= mem::size_of::<cmsghdr>() {
3427
- (*mhdr).msg_control as *mut cmsghdr
+ (*mhdr).msg_control.cast::<cmsghdr>()
3428
} else {
3429
core::ptr::null_mut::<cmsghdr>()
3430
}
@@ -3453,7 +3453,7 @@ f! {
3453
{
3454
3455
3456
- next as *mut cmsghdr
+ next.cast::<cmsghdr>()
3457
3458
3459
0 commit comments