File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 27
27
//! ```no_run
28
28
//! use uefi::CString16;
29
29
//! use uefi::fs::{FileSystem, FileSystemResult};
30
- //! use uefi::prelude::BootServices;
31
30
//! use uefi::proto::media::fs::SimpleFileSystem;
32
- //! use uefi::table:: boot::ScopedProtocol;
31
+ //! use uefi::boot::{self, ScopedProtocol} ;
33
32
//!
34
- //! fn read_file(bs: BootServices, path: &str) -> FileSystemResult<Vec<u8>> {
33
+ //! fn read_file(path: &str) -> FileSystemResult<Vec<u8>> {
35
34
//! let path: CString16 = CString16::try_from(path).unwrap();
36
- //! let fs: ScopedProtocol<SimpleFileSystem> = bs. get_image_file_system(bs. image_handle()).unwrap();
35
+ //! let fs: ScopedProtocol<SimpleFileSystem> = boot:: get_image_file_system(boot:: image_handle()).unwrap();
37
36
//! let mut fs = FileSystem::new(fs);
38
37
//! fs.read(path.as_ref())
39
38
//! }
You can’t perform that action at this time.
0 commit comments