File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
tests/test_kernels/map_phys_mem/src/bin Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,8 @@ mod binary {
229
229
. unwrap_or_else ( |err| {
230
230
format ! (
231
231
"compile_error!(\" failed to parse bootloader config in {}:\n \n {}\" )" ,
232
- path, err. to_string( ) . escape_default( ) ,
232
+ path,
233
+ err. to_string( ) . escape_default( ) ,
233
234
)
234
235
} )
235
236
}
Original file line number Diff line number Diff line change 3
3
4
4
use bootloader:: { entry_point, BootInfo } ;
5
5
use core:: panic:: PanicInfo ;
6
- use test_kernel_map_phys_mem:: { QemuExitCode , exit_qemu, serial} ;
6
+ use test_kernel_map_phys_mem:: { exit_qemu, serial, QemuExitCode } ;
7
7
8
8
entry_point ! ( kernel_main) ;
9
9
Original file line number Diff line number Diff line change 3
3
4
4
use bootloader:: { boot_info:: PixelFormat , entry_point, BootInfo } ;
5
5
use core:: panic:: PanicInfo ;
6
- use test_kernel_map_phys_mem:: { QemuExitCode , exit_qemu, serial} ;
6
+ use test_kernel_map_phys_mem:: { exit_qemu, serial, QemuExitCode } ;
7
7
8
8
entry_point ! ( kernel_main) ;
9
9
@@ -22,7 +22,10 @@ fn kernel_main(boot_info: &'static mut BootInfo) -> ! {
22
22
assert_eq ! ( framebuffer. buffer( ) . len( ) , 1024 * 768 * 3 ) ;
23
23
24
24
// check defaults for optional features
25
- assert ! ( matches!( boot_info. physical_memory_offset. into_option( ) , Some ( _) ) ) ;
25
+ assert ! ( matches!(
26
+ boot_info. physical_memory_offset. into_option( ) ,
27
+ Some ( _)
28
+ ) ) ;
26
29
assert_eq ! ( boot_info. recursive_index. into_option( ) , None ) ;
27
30
28
31
// check rsdp_addr
You can’t perform that action at this time.
0 commit comments