Skip to content

Commit cba22cc

Browse files
Temporarily disable a false-positive clippy lint
Clippy says this code can be rewritten with a `?`, but the suggested change is not valid. Tracked in #303 to revert this change once clippy is fixed.
1 parent fcbdda9 commit cba22cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/alloc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ unsafe impl GlobalAlloc for Allocator {
6060
let align = layout.align();
6161

6262
if align > 8 {
63+
// TODO: https://github.com/rust-osdev/uefi-rs/issues/303
64+
#[allow(clippy::question_mark)]
6365
// allocate more space for alignment
6466
let ptr = if let Ok(ptr) = boot_services()
6567
.as_ref()

0 commit comments

Comments
 (0)