diff --git a/uefi/src/boot.rs b/uefi/src/boot.rs index 234e4b3bd..0429a63b0 100644 --- a/uefi/src/boot.rs +++ b/uefi/src/boot.rs @@ -143,7 +143,7 @@ pub unsafe fn raise_tpl(tpl: Tpl) -> TplGuard { /// /// * [`Status::OUT_OF_RESOURCES`]: allocation failed. /// * [`Status::INVALID_PARAMETER`]: `mem_ty` is [`MemoryType::PERSISTENT_MEMORY`], -/// [`MemoryType::UNACCEPTED`], or in the range [`MemoryType::MAX`]`..=0x6fff_ffff`. +/// [`MemoryType::UNACCEPTED`], or in the range [MemoryType::MAX]..=0x6fff_ffff. /// * [`Status::NOT_FOUND`]: the requested pages could not be found. pub fn allocate_pages( allocation_type: AllocateType, @@ -229,7 +229,7 @@ pub unsafe fn free_pages(ptr: NonNull, count: usize) -> Result { /// /// * [`Status::OUT_OF_RESOURCES`]: allocation failed. /// * [`Status::INVALID_PARAMETER`]: `mem_ty` is [`MemoryType::PERSISTENT_MEMORY`], -/// [`MemoryType::UNACCEPTED`], or in the range [`MemoryType::MAX`]`..=0x6fff_ffff`. +/// [`MemoryType::UNACCEPTED`], or in the range [MemoryType::MAX]..=0x6fff_ffff. pub fn allocate_pool(memory_type: MemoryType, size: usize) -> Result> { let bt = boot_services_raw_panicking(); let bt = unsafe { bt.as_ref() }; diff --git a/uefi/src/proto/pci/mod.rs b/uefi/src/proto/pci/mod.rs index ab3c1e506..8e3e9e09c 100644 --- a/uefi/src/proto/pci/mod.rs +++ b/uefi/src/proto/pci/mod.rs @@ -131,6 +131,7 @@ mod tests { use super::PciIoAddress; #[test] + #[allow(clippy::unusual_byte_groupings)] fn test_pci_ioaddr_raw_conversion() { assert_eq!(size_of::(), size_of::()); let srcaddr = PciIoAddress { diff --git a/uefi/src/runtime.rs b/uefi/src/runtime.rs index 1ad1a7940..1946d271d 100644 --- a/uefi/src/runtime.rs +++ b/uefi/src/runtime.rs @@ -246,7 +246,7 @@ pub fn variable_keys() -> VariableKeys { /// Iterator over all UEFI variables. /// -/// Each iteration yields a `Result<`[`VariableKey`]`>`. Error values: +/// Each iteration yields a Result<`[`VariableKey`]`>. Error values: /// /// * [`Status::DEVICE_ERROR`]: variable could not be read due to a hardware error. /// * [`Status::UNSUPPORTED`]: this platform does not support variable storage