summaryrefslogtreecommitdiff
path: root/bootloader/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'bootloader/src/main.rs')
-rw-r--r--bootloader/src/main.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/bootloader/src/main.rs b/bootloader/src/main.rs
index 04afe41..d26ba08 100644
--- a/bootloader/src/main.rs
+++ b/bootloader/src/main.rs
@@ -3,14 +3,14 @@
use core::time::Duration;
use log::info;
-use uefi::print;
-use uefi::prelude::*;
+use uefi::CString16;
use uefi::Result;
use uefi::Status;
-use uefi::CString16;
+use uefi::boot::{self, ScopedProtocol};
use uefi::fs::{FileSystem, FileSystemResult};
+use uefi::prelude::*;
+use uefi::print;
use uefi::proto::media::fs::SimpleFileSystem;
-use uefi::boot::{self, ScopedProtocol};
extern crate alloc;
use alloc::vec::Vec;
@@ -37,7 +37,8 @@ fn load_kernel() -> Result {
fn read_file(path: &str) -> FileSystemResult<Vec<u8>> {
let path: CString16 = CString16::try_from(path).unwrap();
- let fs: ScopedProtocol<SimpleFileSystem> = boot::get_image_file_system(boot::image_handle()).unwrap();
+ let fs: ScopedProtocol<SimpleFileSystem> =
+ boot::get_image_file_system(boot::image_handle()).unwrap();
let mut fs = FileSystem::new(fs);
fs.read(path.as_ref())
}