Skip to content

Commit

Permalink
Fix lint alloy-sol-types (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored Oct 4, 2024
1 parent ec0615a commit f57baa8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/sol-types/src/abi/token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ impl<T> DynSeqToken<T> {
#[derive(Clone, Copy, PartialEq, Eq)]
pub struct PackedSeqToken<'a>(pub &'a [u8]);

impl<'a> fmt::Debug for PackedSeqToken<'a> {
impl fmt::Debug for PackedSeqToken<'_> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_tuple("PackedSeqToken").field(&hex::encode_prefixed(self.0)).finish()
}
Expand All @@ -457,7 +457,7 @@ impl<'a> From<&'a Vec<u8>> for PackedSeqToken<'a> {
}
}

impl<'a> AsRef<[u8]> for PackedSeqToken<'a> {
impl AsRef<[u8]> for PackedSeqToken<'_> {
fn as_ref(&self) -> &[u8] {
self.0
}
Expand Down

0 comments on commit f57baa8

Please sign in to comment.