Skip to content

Commit

Permalink
uefi: Update ResetNotification protocol docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Aug 27, 2024
1 parent 5466455 commit 9e4fb46
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions uefi/src/proto/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ impl ResetNotification {
///
/// ```rust
/// use log::info;
/// use uefi::Handle;
/// use uefi::prelude::BootServices;
/// use uefi::{boot, Handle};
/// use uefi::proto::misc::{ResetNotification};
/// use uefi_raw::Status;
/// use uefi_raw::table::runtime;
Expand All @@ -62,10 +61,9 @@ impl ResetNotification {
/// info!("do what you want");
/// }
///
/// pub fn test(image: Handle, bt: &BootServices) {
/// pub fn test(image: Handle) {
///
/// let mut rn = bt
/// .open_protocol_exclusive::<ResetNotification>(image)
/// let mut rn = boot::open_protocol_exclusive::<ResetNotification>(image)
/// .expect("Failed to open Timestamp protocol");
///
/// rn.register_reset_notify(efi_reset_fn)
Expand Down

0 comments on commit 9e4fb46

Please sign in to comment.