Skip to content

Commit c08c507

Browse files
collinfunktgross35
authored andcommitted
openbsd: Fix some clippy warnings to use pointer::cast.
(backport <#4490>) (cherry picked from commit 10b7252)
1 parent 5134058 commit c08c507

File tree

1 file changed

+3
-3
lines changed
  • src/unix/bsd/netbsdlike/openbsd

1 file changed

+3
-3
lines changed

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ impl siginfo_t {
630630
_pad: [c_int; SI_PAD],
631631
_pid: crate::pid_t,
632632
}
633-
(*(self as *const siginfo_t as *const siginfo_timer))._pid
633+
(*(self as *const siginfo_t).cast::<siginfo_timer>())._pid
634634
}
635635

636636
pub unsafe fn si_uid(&self) -> crate::uid_t {
@@ -643,7 +643,7 @@ impl siginfo_t {
643643
_pid: crate::pid_t,
644644
_uid: crate::uid_t,
645645
}
646-
(*(self as *const siginfo_t as *const siginfo_timer))._uid
646+
(*(self as *const siginfo_t).cast::<siginfo_timer>())._uid
647647
}
648648

649649
pub unsafe fn si_value(&self) -> crate::sigval {
@@ -657,7 +657,7 @@ impl siginfo_t {
657657
_uid: crate::uid_t,
658658
value: crate::sigval,
659659
}
660-
(*(self as *const siginfo_t as *const siginfo_timer)).value
660+
(*(self as *const siginfo_t).cast::<siginfo_timer>()).value
661661
}
662662
}
663663

0 commit comments

Comments
 (0)