Skip to content

Commit

Permalink
Temporarily disable a false-positive clippy lint
Browse files Browse the repository at this point in the history
Clippy says this code can be rewritten with a `?`, but the suggested
change is not valid.

Tracked in rust-osdev#303 to revert
this change once clippy is fixed.
  • Loading branch information
nicholasbishop committed Oct 25, 2021
1 parent 78e81e4 commit ea5720d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ unsafe impl GlobalAlloc for Allocator {
let align = layout.align();

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

0 comments on commit ea5720d

Please sign in to comment.