From 65bc12c72a4bd830cad392149c50241a4e326412 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Mon, 26 Aug 2024 10:48:06 -0400 Subject: [PATCH] uefi: Update FS docstring example code --- uefi/src/fs/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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()) //! }