Skip to content

Commit 4f9d7b2

Browse files
committed
lifetime annotations fix
1 parent b5bd0f8 commit 4f9d7b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

uefi/src/proto/dma/iommu.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl Iommu {
5050
operation: EdkiiIommuOperation,
5151
host_buffer: &DmaBuffer,
5252
number_of_bytes: usize,
53-
) -> Result<(PhysicalAddress, Mapping, usize)> {
53+
) -> Result<(PhysicalAddress, Mapping<'_>, usize)> {
5454
let mut number_of_bytes = number_of_bytes;
5555

5656
let mut mapping_raw: *mut c_void = core::ptr::null_mut();
@@ -87,7 +87,7 @@ impl Iommu {
8787
memory_type: MemoryType,
8888
pages: usize,
8989
attributes: EdkiiIommuAttribute,
90-
) -> Result<DmaBuffer> {
90+
) -> Result<DmaBuffer<'_>> {
9191
let mut host_address: *mut c_void = core::ptr::null_mut();
9292

9393
// Must be ignored

0 commit comments

Comments
 (0)