mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 21:33:53 -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
|
@ -1016,7 +1016,7 @@ impl<T> Opaque<T> {
|
|||
|
||||
/// Returns a raw pointer to the opaque data.
|
||||
pub const fn as_ptr(&self) -> *const T {
|
||||
self.as_mut_ptr() as *const _
|
||||
self.as_mut_ptr().cast_const()
|
||||
}
|
||||
|
||||
/// Returns a raw pointer to the opaque data that can be passed to a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue