mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
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:
parent
e0b2b74f70
commit
e4fb0be1d1
12 changed files with 20 additions and 18 deletions
|
@ -2,7 +2,12 @@
|
|||
// Author(s): Zhao Liu <zhai1.liu@intel.com>
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
use std::{ffi::CStr, mem::size_of, os::raw::c_void, ptr::NonNull, slice};
|
||||
use std::{
|
||||
ffi::{c_void, CStr},
|
||||
mem::size_of,
|
||||
ptr::NonNull,
|
||||
slice,
|
||||
};
|
||||
|
||||
use qemu_api::{
|
||||
bindings::{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue