Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/data_types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl Handle {

/// Handle to an event structure
#[repr(transparent)]
pub struct Event(*mut c_void);
pub struct Event(NonNull<c_void>);

impl Event {
/// Clone this `Event`
Expand Down
2 changes: 1 addition & 1 deletion src/proto/media/disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl DiskIo {
#[repr(C)]
pub struct DiskIo2Token {
/// Event to be signalled when an asynchronous disk I/O operation completes.
pub event: Event,
pub event: Option<Event>,
/// Transaction status code.
pub transaction_status: Status,
}
Expand Down
2 changes: 1 addition & 1 deletion uefi-test-runner/src/proto/media/known_disk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ fn test_raw_disk_io2(handle: Handle, bt: &BootServices) {
// Initialise the task context
let mut task = DiskIoTask {
token: DiskIo2Token {
event: event.unsafe_clone(),
event: Some(event.unsafe_clone()),
transaction_status: uefi::Status::NOT_READY,
},
buffer: [0; 512],
Expand Down