Skip to content

Commit 3be4d04

Browse files
authored
Merge pull request #1372 from nicholasbishop/bishop-reset-docs
uefi: Update ResetNotification protocol docs
2 parents ba8bad3 + 9e4fb46 commit 3be4d04

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

uefi/src/proto/misc.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ impl ResetNotification {
4444
///
4545
/// ```rust
4646
/// use log::info;
47-
/// use uefi::Handle;
48-
/// use uefi::prelude::BootServices;
47+
/// use uefi::{boot, Handle};
4948
/// use uefi::proto::misc::{ResetNotification};
5049
/// use uefi_raw::Status;
5150
/// use uefi_raw::table::runtime;
@@ -62,10 +61,9 @@ impl ResetNotification {
6261
/// info!("do what you want");
6362
/// }
6463
///
65-
/// pub fn test(image: Handle, bt: &BootServices) {
64+
/// pub fn test(image: Handle) {
6665
///
67-
/// let mut rn = bt
68-
/// .open_protocol_exclusive::<ResetNotification>(image)
66+
/// let mut rn = boot::open_protocol_exclusive::<ResetNotification>(image)
6967
/// .expect("Failed to open Timestamp protocol");
7068
///
7169
/// rn.register_reset_notify(efi_reset_fn)

0 commit comments

Comments
 (0)