Skip to content

Commit 7efcf39

Browse files
author
BillXiang
committed
style: formatting fixes
Signed-off-by: BillXiang <[email protected]>
1 parent 9990f15 commit 7efcf39

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

kvm-bindings/src/riscv64/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#[allow(clippy::all)]
66
#[allow(clippy::undocumented_unsafe_blocks)]
77
pub mod bindings;
8-
pub mod sbi_bindings;
98
#[cfg(feature = "fam-wrappers")]
109
pub mod fam_wrappers;
10+
pub mod sbi_bindings;
1111

1212
#[cfg(feature = "serde")]
1313
mod serialize;

kvm-ioctls/src/ioctls/vcpu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ impl VcpuFd {
16961696
KVM_EXIT_RISCV_SBI => {
16971697
// SAFETY: Safe because the exit_reason (which comes from the kernel) told us
16981698
// which union field to use and the type of extension_id is 'enum sbi_ext_id'.
1699-
match unsafe {run.__bindgen_anon_1.riscv_sbi.extension_id} as u32 {
1699+
match unsafe { run.__bindgen_anon_1.riscv_sbi.extension_id } as u32 {
17001700
SBI_EXT_0_1_CONSOLE_PUTCHAR => {
17011701
let ch = unsafe { run.__bindgen_anon_1.riscv_sbi.args[0] };
17021702
Ok(VcpuExit::SbiExt0_1ConsolePutchar(ch))

0 commit comments

Comments
 (0)