rust: prefer importing std::ptr over core::ptr
authorZhao Liu <zhao1.liu@intel.com>
Tue, 18 Feb 2025 08:08:35 +0000 (16:08 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 25 Feb 2025 15:18:11 +0000 (16:18 +0100)
commitc48700e86d91004424e3a6496f194decb036dccb
tree09c583b9bad59f81771aeccb1affe5ce6142e4e3
parent4cb7040d851cdd7b2622f83fd7d95a922225386b
rust: prefer importing std::ptr over core::ptr

The std::ptr is same as core::ptr, but std has already been used in many
cases and there's no need to choose non-std library.

So, use std::ptr directly to make the used ptr library as consistent as
possible.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250218080835.3341082-1-zhao1.liu@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
rust/hw/char/pl011/src/device.rs
rust/hw/char/pl011/src/device_class.rs
rust/qemu-api/src/irq.rs