diff --git a/uefi/src/fs/mod.rs b/uefi/src/fs/mod.rs index b66acbfcc..22df15f04 100644 --- a/uefi/src/fs/mod.rs +++ b/uefi/src/fs/mod.rs @@ -27,13 +27,12 @@ //! ```no_run //! use uefi::CString16; //! use uefi::fs::{FileSystem, FileSystemResult}; -//! use uefi::prelude::BootServices; //! use uefi::proto::media::fs::SimpleFileSystem; -//! use uefi::table::boot::ScopedProtocol; +//! use uefi::boot::{self, ScopedProtocol}; //! -//! fn read_file(bs: BootServices, path: &str) -> FileSystemResult> { +//! fn read_file(path: &str) -> FileSystemResult> { //! let path: CString16 = CString16::try_from(path).unwrap(); -//! let fs: ScopedProtocol = bs.get_image_file_system(bs.image_handle()).unwrap(); +//! let fs: ScopedProtocol = boot::get_image_file_system(boot::image_handle()).unwrap(); //! let mut fs = FileSystem::new(fs); //! fs.read(path.as_ref()) //! }