mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-19 05:58:35 -07: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
|
|
@ -81,7 +81,7 @@ impl Timer {
|
|||
scale as c_int,
|
||||
attributes as c_int,
|
||||
Some(timer_cb),
|
||||
(opaque as *const T).cast::<c_void>() as *mut c_void,
|
||||
(opaque as *const T).cast::<c_void>().cast_mut(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue