Skip to content

Commit

Permalink
chore(lint): fix lint primitives (paradigmxyz#11487)
Browse files Browse the repository at this point in the history
  • Loading branch information
emhane authored and ebo committed Oct 14, 2024
1 parent 2e51651 commit 5a0831d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion crates/primitives-traits/src/header/sealed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ pub(super) mod serde_bincode_compat {
}
}

impl<'a> SerializeAs<super::SealedHeader> for SealedHeader<'a> {
impl SerializeAs<super::SealedHeader> for SealedHeader<'_> {
fn serialize_as<S>(source: &super::SealedHeader, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down
6 changes: 3 additions & 3 deletions crates/primitives/src/block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,7 @@ pub(super) mod serde_bincode_compat {
}
}

impl<'a> SerializeAs<super::BlockBody> for BlockBody<'a> {
impl SerializeAs<super::BlockBody> for BlockBody<'_> {
fn serialize_as<S>(source: &super::BlockBody, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down Expand Up @@ -807,7 +807,7 @@ pub(super) mod serde_bincode_compat {
}
}

impl<'a> SerializeAs<super::SealedBlock> for SealedBlock<'a> {
impl SerializeAs<super::SealedBlock> for SealedBlock<'_> {
fn serialize_as<S>(source: &super::SealedBlock, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down Expand Up @@ -858,7 +858,7 @@ pub(super) mod serde_bincode_compat {
}
}

impl<'a> SerializeAs<super::SealedBlockWithSenders> for SealedBlockWithSenders<'a> {
impl SerializeAs<super::SealedBlockWithSenders> for SealedBlockWithSenders<'_> {
fn serialize_as<S>(
source: &super::SealedBlockWithSenders,
serializer: S,
Expand Down
6 changes: 3 additions & 3 deletions crates/primitives/src/receipt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ impl<'a> ReceiptWithBloomRef<'a> {
}
}

impl<'a> Encodable for ReceiptWithBloomRef<'a> {
impl Encodable for ReceiptWithBloomRef<'_> {
fn encode(&self, out: &mut dyn BufMut) {
self.as_encoder().encode_inner(out, true)
}
Expand All @@ -394,7 +394,7 @@ struct ReceiptWithBloomEncoder<'a> {
receipt: &'a Receipt,
}

impl<'a> ReceiptWithBloomEncoder<'a> {
impl ReceiptWithBloomEncoder<'_> {
/// Returns the rlp header for the receipt payload.
fn receipt_rlp_header(&self) -> alloy_rlp::Header {
let mut rlp_head = alloy_rlp::Header { list: true, payload_length: 0 };
Expand Down Expand Up @@ -481,7 +481,7 @@ impl<'a> ReceiptWithBloomEncoder<'a> {
}
}

impl<'a> Encodable for ReceiptWithBloomEncoder<'a> {
impl Encodable for ReceiptWithBloomEncoder<'_> {
fn encode(&self, out: &mut dyn BufMut) {
self.encode_inner(out, true)
}
Expand Down
4 changes: 2 additions & 2 deletions crates/primitives/src/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,7 @@ pub mod serde_bincode_compat {
}
}

impl<'a> SerializeAs<super::Transaction> for Transaction<'a> {
impl SerializeAs<super::Transaction> for Transaction<'_> {
fn serialize_as<S>(source: &super::Transaction, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
Expand Down Expand Up @@ -1700,7 +1700,7 @@ pub mod serde_bincode_compat {
}
}

impl<'a> SerializeAs<super::TransactionSigned> for TransactionSigned<'a> {
impl SerializeAs<super::TransactionSigned> for TransactionSigned<'_> {
fn serialize_as<S>(
source: &super::TransactionSigned,
serializer: S,
Expand Down

0 comments on commit 5a0831d

Please sign in to comment.