diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-02 10:18:35 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-05-06 16:02:04 +0200 |
| commit | e4fb0be1d1d6b67df7709d84d16133b64f455ce8 (patch) | |
| tree | 14fe7ee2b632989b069ca41738c95719e22dc628 /rust/hw/timer | |
| parent | e0b2b74f70a85b16e9d4a9b6111e09956ae4cfd9 (diff) | |
| download | focaccia-qemu-e4fb0be1d1d6b67df7709d84d16133b64f455ce8.tar.gz focaccia-qemu-e4fb0be1d1d6b67df7709d84d16133b64f455ce8.zip | |
rust: use std::ffi instead of std::os::raw
This is allowed since Rust 1.64.0. Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org> Reviewed-by: Zhao Liu <zhao1.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'rust/hw/timer')
| -rw-r--r-- | rust/hw/timer/hpet/src/hpet.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rust/hw/timer/hpet/src/hpet.rs b/rust/hw/timer/hpet/src/hpet.rs index 12de2ba59a..d4364f2f2f 100644 --- a/rust/hw/timer/hpet/src/hpet.rs +++ b/rust/hw/timer/hpet/src/hpet.rs @@ -3,8 +3,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later use std::{ - ffi::CStr, - os::raw::{c_int, c_void}, + ffi::{c_int, c_void, CStr}, pin::Pin, ptr::{addr_of_mut, null_mut, NonNull}, slice::from_ref, |