Skip to content

Commit 0440530

Browse files
committed
run cargo fmt
1 parent e7e6f9a commit 0440530

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_kernels/stack_address/src/bin/basic_boot.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ use test_kernel_stack_address::{BOOTLOADER_CONFIG, QemuExitCode, exit_qemu};
77
entry_point!(kernel_main, config = &BOOTLOADER_CONFIG);
88

99
fn kernel_main(boot_info: &'static mut BootInfo) -> ! {
10-
1110
let x: i32 = 42;
1211
let vaddr = &x as *const _ as usize as u64;
1312

1413
assert_ne!(boot_info.kernel_stack_bottom, 0);
15-
assert_eq!(boot_info.kernel_stack_len, BOOTLOADER_CONFIG.kernel_stack_size);
14+
assert_eq!(
15+
boot_info.kernel_stack_len,
16+
BOOTLOADER_CONFIG.kernel_stack_size
17+
);
1618
assert!(vaddr >= boot_info.kernel_stack_bottom);
1719
assert!(vaddr < boot_info.kernel_stack_bottom + boot_info.kernel_stack_len);
1820

0 commit comments

Comments
 (0)