Skip to content

Commit 4b7f5ba

Browse files
Merge pull request #1774 from rust-osdev/clippy-tightening-2
style: apply/fix more clippy lints (from cargo::nursery) (2/2)
2 parents 77c57a6 + 7c96d86 commit 4b7f5ba

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-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/proto/pci/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ mod tests {
131131
use super::PciIoAddress;
132132

133133
#[test]
134+
#[allow(clippy::unusual_byte_groupings)]
134135
fn test_pci_ioaddr_raw_conversion() {
135136
assert_eq!(size_of::<u64>(), size_of::<PciIoAddress>());
136137
let srcaddr = PciIoAddress {

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)