Use NonNull
in struct Event
, similar to struct Handle
#477
Labels
NonNull
in struct Event
, similar to struct Handle
#477
In #309, the
Handle
type was changed from containing just a raw pointer toNonNull<c_void>
, which has the nice advantage that you can then useOption<Handle>
when you want a nullableHandle
, and this is FFI-safe.As was mentioned in #309 (comment), it would make sense to do this for the
Event
type too -- there are times when it needs to be nullable such as the token structures in BlockIO2 and DiskIO2.Relevant code: https://github.com/rust-osdev/uefi-rs/blob/main/src/data_types/mod.rs#L42
The text was updated successfully, but these errors were encountered: