Skip to content

Commit

Permalink
rust: include rust_version in Cargo.toml
Browse files Browse the repository at this point in the history
Tell clippy the minimum supported Rust version for QEMU.

Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
bonzini committed Feb 6, 2025
1 parent f261378 commit 669fab6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions rust/hw/char/pl011/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resolver = "2"
publish = false
keywords = []
categories = []
rust-version = "1.63.0"

[lib]
crate-type = ["staticlib"]
Expand Down
1 change: 0 additions & 1 deletion rust/hw/char/pl011/src/device_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use qemu_api::{

use crate::device::{PL011Registers, PL011State};

#[allow(clippy::missing_const_for_fn)]
extern "C" fn pl011_clock_needed(opaque: *mut c_void) -> bool {
let state = NonNull::new(opaque).unwrap().cast::<PL011State>();
unsafe { state.as_ref().migrate_clock }
Expand Down
1 change: 1 addition & 0 deletions rust/qemu-api-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resolver = "2"
publish = false
keywords = []
categories = []
rust-version = "1.63.0"

[lib]
proc-macro = true
Expand Down
1 change: 1 addition & 0 deletions rust/qemu-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ resolver = "2"
publish = false
keywords = []
categories = []
rust-version = "1.63.0"

[dependencies]
qemu_api_macros = { path = "../qemu-api-macros" }
Expand Down

0 comments on commit 669fab6

Please sign in to comment.