Skip to content

Commit 95e02d5

Browse files
committed
Format code
1 parent 38e4b8a commit 95e02d5

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

bios/stage-4/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ pub extern "C" fn _start(info: &mut BiosInfo) -> ! {
120120
rsdp_addr: detect_rsdp(),
121121
ramdisk_addr: match info.ramdisk.len {
122122
0 => None,
123-
_ => Some(info.ramdisk.start)
123+
_ => Some(info.ramdisk.start),
124124
},
125-
ramdisk_len: info.ramdisk.len
125+
ramdisk_len: info.ramdisk.len,
126126
};
127127

128128
load_and_switch_to_kernel(kernel, frame_allocator, page_tables, system_info);

uefi/src/main.rs

+7-6
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ use uefi::{
1313
prelude::{entry, Boot, Handle, Status, SystemTable},
1414
proto::{
1515
console::gop::{GraphicsOutput, PixelFormat},
16-
device_path::{DevicePath},
17-
loaded_image::{LoadedImage},
16+
device_path::DevicePath,
17+
loaded_image::LoadedImage,
1818
media::{
1919
file::{File, FileAttribute, FileInfo, FileMode},
2020
fs::SimpleFileSystem,
@@ -133,9 +133,9 @@ fn main_inner(image: Handle, mut st: SystemTable<Boot>) -> Status {
133133
},
134134
ramdisk_addr: match ramdisk_addr {
135135
0 => None,
136-
v => Some(v)
136+
v => Some(v),
137137
},
138-
ramdisk_len: ramdisk_len
138+
ramdisk_len: ramdisk_len,
139139
};
140140

141141
bootloader_x86_64_common::load_and_switch_to_kernel(
@@ -255,8 +255,9 @@ fn load_file_from_disk(
255255
let mut root = file_system.open_volume().unwrap();
256256
let mut buf = [0u16; 256];
257257
assert!(name.len() < 256);
258-
let filename = CStr16::from_str_with_buf(name.trim_end_matches('\0'), &mut buf).expect("Failed to convert string to utf16");
259-
258+
let filename = CStr16::from_str_with_buf(name.trim_end_matches('\0'), &mut buf)
259+
.expect("Failed to convert string to utf16");
260+
260261
let file_handle_result = root.open(filename, FileMode::Read, FileAttribute::empty());
261262

262263
if file_handle_result.is_err() {

0 commit comments

Comments
 (0)