diff --git a/crates/primitives/src/bits/function.rs b/crates/primitives/src/bits/function.rs index 20ab1dbea..f8fd61f1b 100644 --- a/crates/primitives/src/bits/function.rs +++ b/crates/primitives/src/bits/function.rs @@ -59,6 +59,7 @@ impl Function { /// Returns references to the address and selector of the function. #[inline] + #[allow(clippy::missing_const_for_fn)] pub fn as_address_and_selector(&self) -> (&Address, &Selector) { // SAFETY: Function (24) = Address (20) + Selector (4) unsafe { (&*self.as_ptr().cast(), &*self.as_ptr().add(20).cast()) } diff --git a/crates/primitives/src/log/mod.rs b/crates/primitives/src/log/mod.rs index 7aea8a1df..63028cc83 100644 --- a/crates/primitives/src/log/mod.rs +++ b/crates/primitives/src/log/mod.rs @@ -54,6 +54,7 @@ impl LogData { /// Get the topic list. #[inline] + #[allow(clippy::missing_const_for_fn)] pub fn topics(&self) -> &[B256] { &self.topics }