File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ impl ResetNotification {
44
44
///
45
45
/// ```rust
46
46
/// use log::info;
47
- /// use uefi::Handle;
48
- /// use uefi::prelude::BootServices;
47
+ /// use uefi::{boot, Handle};
49
48
/// use uefi::proto::misc::{ResetNotification};
50
49
/// use uefi_raw::Status;
51
50
/// use uefi_raw::table::runtime;
@@ -62,10 +61,9 @@ impl ResetNotification {
62
61
/// info!("do what you want");
63
62
/// }
64
63
///
65
- /// pub fn test(image: Handle, bt: &BootServices ) {
64
+ /// pub fn test(image: Handle) {
66
65
///
67
- /// let mut rn = bt
68
- /// .open_protocol_exclusive::<ResetNotification>(image)
66
+ /// let mut rn = boot::open_protocol_exclusive::<ResetNotification>(image)
69
67
/// .expect("Failed to open Timestamp protocol");
70
68
///
71
69
/// rn.register_reset_notify(efi_reset_fn)
You can’t perform that action at this time.
0 commit comments