Skip to content

Commit 0fa3055

Browse files
committed
fix: fix warnings
Signed-off-by: YdrMaster <[email protected]>
1 parent c5a422b commit 0fa3055

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

rustsbi-qemu/src/clint.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use crate::{hart_id, trap_stack::remote_hsm};
22
use aclint::SifiveClint;
3-
use core::{cell::UnsafeCell, mem::MaybeUninit, ptr::NonNull};
3+
use core::{mem::MaybeUninit, ptr::NonNull};
44
use rustsbi::{spec::binary::SbiRet, HartMask, Ipi, Timer};
5-
use spin::Once;
65

76
pub(crate) struct Clint;
87

xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl QemuArgs {
144144
_ => panic!(),
145145
};
146146
let status = Qemu::system("riscv64")
147-
.args(&["-machine", "virt"])
147+
.args(["-machine", "virt"])
148148
.arg("-nographic")
149149
.arg("-bios")
150150
.arg(sbi)

0 commit comments

Comments
 (0)