Skip to content

Commit 74be909

Browse files
phip1611nicholasbishop
authored andcommitted
uefi: cargo doc/clippy fixes
1 parent f20b2f7 commit 74be909

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

uefi/src/boot.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ pub unsafe fn raise_tpl(tpl: Tpl) -> TplGuard {
143143
///
144144
/// * [`Status::OUT_OF_RESOURCES`]: allocation failed.
145145
/// * [`Status::INVALID_PARAMETER`]: `mem_ty` is [`MemoryType::PERSISTENT_MEMORY`],
146-
/// [`MemoryType::UNACCEPTED`], or in the range [`MemoryType::MAX`]`..=0x6fff_ffff`.
146+
/// [`MemoryType::UNACCEPTED`], or in the range <code>[MemoryType::MAX]..=0x6fff_ffff</code>.
147147
/// * [`Status::NOT_FOUND`]: the requested pages could not be found.
148148
pub fn allocate_pages(
149149
allocation_type: AllocateType,
@@ -229,7 +229,7 @@ pub unsafe fn free_pages(ptr: NonNull<u8>, count: usize) -> Result {
229229
///
230230
/// * [`Status::OUT_OF_RESOURCES`]: allocation failed.
231231
/// * [`Status::INVALID_PARAMETER`]: `mem_ty` is [`MemoryType::PERSISTENT_MEMORY`],
232-
/// [`MemoryType::UNACCEPTED`], or in the range [`MemoryType::MAX`]`..=0x6fff_ffff`.
232+
/// [`MemoryType::UNACCEPTED`], or in the range <code>[MemoryType::MAX]..=0x6fff_ffff</code>.
233233
pub fn allocate_pool(memory_type: MemoryType, size: usize) -> Result<NonNull<u8>> {
234234
let bt = boot_services_raw_panicking();
235235
let bt = unsafe { bt.as_ref() };

uefi/src/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ pub fn variable_keys() -> VariableKeys {
246246

247247
/// Iterator over all UEFI variables.
248248
///
249-
/// Each iteration yields a `Result<`[`VariableKey`]`>`. Error values:
249+
/// Each iteration yields a <code>Result<`[`VariableKey`]`></code>. Error values:
250250
///
251251
/// * [`Status::DEVICE_ERROR`]: variable could not be read due to a hardware error.
252252
/// * [`Status::UNSUPPORTED`]: this platform does not support variable storage

0 commit comments

Comments
 (0)