Skip to content

Commit b954263

Browse files
test-runner: Test boot::create_event
1 parent 6629c7e commit b954263

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uefi-test-runner/src/proto/media.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use alloc::string::ToString;
22
use core::cell::RefCell;
33
use core::ptr::NonNull;
4+
use uefi::boot;
45
use uefi::data_types::Align;
56
use uefi::prelude::*;
67
use uefi::proto::media::block::BlockIO;
@@ -305,8 +306,7 @@ fn test_raw_disk_io2(handle: Handle, bt: &BootServices) {
305306

306307
unsafe {
307308
// Create the completion event
308-
let mut event = bt
309-
.create_event(EventType::empty(), Tpl::NOTIFY, None, None)
309+
let mut event = boot::create_event(EventType::empty(), Tpl::NOTIFY, None, None)
310310
.expect("Failed to create disk I/O completion event");
311311

312312
// Initialise the task context

0 commit comments

Comments
 (0)