@@ -13,8 +13,8 @@ use uefi::{
13
13
prelude:: { entry, Boot , Handle , Status , SystemTable } ,
14
14
proto:: {
15
15
console:: gop:: { GraphicsOutput , PixelFormat } ,
16
- device_path:: { DevicePath } ,
17
- loaded_image:: { LoadedImage } ,
16
+ device_path:: DevicePath ,
17
+ loaded_image:: LoadedImage ,
18
18
media:: {
19
19
file:: { File , FileAttribute , FileInfo , FileMode } ,
20
20
fs:: SimpleFileSystem ,
@@ -133,9 +133,9 @@ fn main_inner(image: Handle, mut st: SystemTable<Boot>) -> Status {
133
133
} ,
134
134
ramdisk_addr : match ramdisk_addr {
135
135
0 => None ,
136
- v => Some ( v)
136
+ v => Some ( v) ,
137
137
} ,
138
- ramdisk_len : ramdisk_len
138
+ ramdisk_len : ramdisk_len,
139
139
} ;
140
140
141
141
bootloader_x86_64_common:: load_and_switch_to_kernel (
@@ -255,8 +255,9 @@ fn load_file_from_disk(
255
255
let mut root = file_system. open_volume ( ) . unwrap ( ) ;
256
256
let mut buf = [ 0u16 ; 256 ] ;
257
257
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
+
260
261
let file_handle_result = root. open ( filename, FileMode :: Read , FileAttribute :: empty ( ) ) ;
261
262
262
263
if file_handle_result. is_err ( ) {
0 commit comments