Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
yash-atreya committed Jan 20, 2025
1 parent 23979f1 commit 2c39af0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/primitives/src/bits/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()) }
Expand Down
1 change: 1 addition & 0 deletions crates/primitives/src/log/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ impl LogData {

/// Get the topic list.
#[inline]
#[allow(clippy::missing_const_for_fn)]
pub fn topics(&self) -> &[B256] {
&self.topics
}
Expand Down

0 comments on commit 2c39af0

Please sign in to comment.