Skip to content

Commit 3c1dfc4

Browse files
committed
Run cargo fmt
1 parent 3a3169b commit 3c1dfc4

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

build.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ mod binary {
229229
.unwrap_or_else(|err| {
230230
format!(
231231
"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(),
233234
)
234235
})
235236
}

tests/test_kernels/map_phys_mem/src/bin/access_phys_mem.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use bootloader::{entry_point, BootInfo};
55
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};
77

88
entry_point!(kernel_main);
99

tests/test_kernels/map_phys_mem/src/bin/check_boot_info.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use bootloader::{boot_info::PixelFormat, entry_point, BootInfo};
55
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};
77

88
entry_point!(kernel_main);
99

@@ -22,7 +22,10 @@ fn kernel_main(boot_info: &'static mut BootInfo) -> ! {
2222
assert_eq!(framebuffer.buffer().len(), 1024 * 768 * 3);
2323

2424
// 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+
));
2629
assert_eq!(boot_info.recursive_index.into_option(), None);
2730

2831
// check rsdp_addr

0 commit comments

Comments
 (0)