Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
purplesyringa committed Oct 30, 2024
1 parent 23fa80e commit 6cc85eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/itanium.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ unsafe impl ThrowByPointer for ActiveBackend {
// runtime, but that sounds like common sense. Note that we only dereference the class
// rather than the whole `Header`, as we don't know whether `ex` is aligned to `Header`, but
// it must be at least aligned for `u64` access.
#[expect(clippy::cast_ptr_alignment, reason = "See the safety comment above")]
let class = unsafe { *ex.cast::<u64>() };

if class != LITHIUM_EXCEPTION_CLASS {
Expand Down

0 comments on commit 6cc85eb

Please sign in to comment.