mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
rust: enable clippy::ptr_cast_constness
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3a1c694d74
commit
5df3fe062f
7 changed files with 7 additions and 9 deletions
|
@ -219,7 +219,7 @@ impl HPETTimer {
|
|||
// SAFETY: the HPETTimer will only be used after the timer
|
||||
// is initialized below.
|
||||
qemu_timer: unsafe { Timer::new() },
|
||||
state: NonNull::new(state as *const _ as *mut _).unwrap(),
|
||||
state: NonNull::new((state as *const HPETState).cast_mut()).unwrap(),
|
||||
config: 0,
|
||||
cmp: 0,
|
||||
fsb: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue