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>
This commit is contained in:
Paolo Bonzini 2025-05-02 10:18:35 +02:00
parent e0b2b74f70
commit e4fb0be1d1
12 changed files with 20 additions and 18 deletions

View file

@ -93,11 +93,10 @@
//! without incurring into violations of orphan rules for traits.
use std::{
ffi::CStr,
ffi::{c_void, CStr},
fmt,
mem::ManuallyDrop,
ops::{Deref, DerefMut},
os::raw::c_void,
ptr::NonNull,
};