From 6cc85eb535f826a7c27b35eeeae3cab57bf68618 Mon Sep 17 00:00:00 2001 From: Alisa Sireneva Date: Wed, 30 Oct 2024 13:41:13 +0300 Subject: [PATCH] Clippy --- src/backend/itanium.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/itanium.rs b/src/backend/itanium.rs index 53a303e..1b92762 100644 --- a/src/backend/itanium.rs +++ b/src/backend/itanium.rs @@ -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::() }; if class != LITHIUM_EXCEPTION_CLASS {