diff options
| author | Ayush Singh <ayushsingh1325@gmail.com> | 2023-03-28 20:14:33 +0530 |
|---|---|---|
| committer | Ayush Singh <ayushdevel1325@gmail.com> | 2023-09-22 17:23:33 +0530 |
| commit | 7a956441a15e6056448233d79f2d03581ce0ccfc (patch) | |
| tree | 9bb579dbb5dd1e294616fc2625940841808b42cd /library/std/src/sys/uefi/helpers.rs | |
| parent | 5df24d18b6cdb8abcede6b658cf066360a219c12 (diff) | |
| download | rust-7a956441a15e6056448233d79f2d03581ce0ccfc.tar.gz rust-7a956441a15e6056448233d79f2d03581ce0ccfc.zip | |
Fixes from PR
- Some comment fixes. - Make some functions unsafe. - Make helpers module private. - Rebase on master - Update r-efi to v4.2.0 Signed-off-by: Ayush Singh <ayushsingh1325@gmail.com>
Diffstat (limited to 'library/std/src/sys/uefi/helpers.rs')
| -rw-r--r-- | library/std/src/sys/uefi/helpers.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/std/src/sys/uefi/helpers.rs b/library/std/src/sys/uefi/helpers.rs index 2108484a40c..ea1c68a90ef 100644 --- a/library/std/src/sys/uefi/helpers.rs +++ b/library/std/src/sys/uefi/helpers.rs @@ -295,7 +295,9 @@ pub(crate) fn create_event( } } -pub(crate) fn close_event(evt: NonNull<crate::ffi::c_void>) -> io::Result<()> { +/// # SAFETY +/// - The supplied event must be valid +pub(crate) unsafe fn close_event(evt: NonNull<crate::ffi::c_void>) -> io::Result<()> { let boot_services: NonNull<efi::BootServices> = boot_services().ok_or(BOOT_SERVICES_UNAVAILABLE)?.cast(); let r = unsafe { |
