Skip to content

Commit 2a1ac4e

Browse files
committed
rsdp: fix clippy warnings
1 parent 300b8ca commit 2a1ac4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: rsdp/src/handler.rs

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ where
3333
/// than `region_length`, due to requirements of the paging system or other reasoning.
3434
/// - `handler` should be the same `AcpiHandler` that created the mapping. When the `PhysicalMapping` is
3535
/// dropped, it will be used to unmap the structure.
36+
///
37+
/// # Safety
38+
///
39+
/// The caller must make sure that the parameters correctly represent an existing mapping.
3640
pub unsafe fn new(
3741
physical_start: usize,
3842
virtual_start: NonNull<T>,

0 commit comments

Comments
 (0)