@@ -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