mirror of
https://github.com/qemu/qemu.git
synced 2025-08-16 14:54:29 +00:00
rust: include rust_version in Cargo.toml
Tell clippy the minimum supported Rust version for QEMU. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
f26137893b
commit
669fab6a1f
@ -9,6 +9,7 @@ resolver = "2"
|
|||||||
publish = false
|
publish = false
|
||||||
keywords = []
|
keywords = []
|
||||||
categories = []
|
categories = []
|
||||||
|
rust-version = "1.63.0"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
crate-type = ["staticlib"]
|
crate-type = ["staticlib"]
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
use crate::device::{PL011Registers, PL011State};
|
use crate::device::{PL011Registers, PL011State};
|
||||||
|
|
||||||
#[allow(clippy::missing_const_for_fn)]
|
|
||||||
extern "C" fn pl011_clock_needed(opaque: *mut c_void) -> bool {
|
extern "C" fn pl011_clock_needed(opaque: *mut c_void) -> bool {
|
||||||
let state = NonNull::new(opaque).unwrap().cast::<PL011State>();
|
let state = NonNull::new(opaque).unwrap().cast::<PL011State>();
|
||||||
unsafe { state.as_ref().migrate_clock }
|
unsafe { state.as_ref().migrate_clock }
|
||||||
|
@ -9,6 +9,7 @@ resolver = "2"
|
|||||||
publish = false
|
publish = false
|
||||||
keywords = []
|
keywords = []
|
||||||
categories = []
|
categories = []
|
||||||
|
rust-version = "1.63.0"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
proc-macro = true
|
proc-macro = true
|
||||||
|
@ -12,6 +12,7 @@ resolver = "2"
|
|||||||
publish = false
|
publish = false
|
||||||
keywords = []
|
keywords = []
|
||||||
categories = []
|
categories = []
|
||||||
|
rust-version = "1.63.0"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
qemu_api_macros = { path = "../qemu-api-macros" }
|
qemu_api_macros = { path = "../qemu-api-macros" }
|
||||||
|
Loading…
Reference in New Issue
Block a user