From eca7a24d5e1dd714154e29db69e7018b33ba1650 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Sat, 13 Sep 2025 10:33:09 +0200 Subject: [PATCH 1/2] uefi: cargo doc/clippy fixes --- uefi/src/boot.rs | 4 ++-- uefi/src/runtime.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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/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 From 7c96d86f126e40de9e89f4cf0d316c36acb7321a Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Sat, 13 Sep 2025 10:35:05 +0200 Subject: [PATCH 2/2] clippy: allow some future lints (from clippy::nursery) --- uefi/src/proto/pci/mod.rs | 1 + 1 file changed, 1 insertion(+) 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 {