Skip to content

Commit 585ae6b

Browse files
uefi: Fix unsafe_op_in_unsafe_fn in dir module
1 parent 51d785a commit 585ae6b

File tree

1 file changed

+1
-1
lines changed
  • uefi/src/proto/media/file

1 file changed

+1
-1
lines changed

uefi/src/proto/media/file/dir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ impl Directory {
2525
/// doing otherwise is unsafe.
2626
#[must_use]
2727
pub const unsafe fn new(handle: FileHandle) -> Self {
28-
Self(RegularFile::new(handle))
28+
Self(unsafe { RegularFile::new(handle) })
2929
}
3030

3131
/// Read the next directory entry.

0 commit comments

Comments
 (0)