Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(lint): fix lint primitives #11487

Merged
merged 1 commit into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -182,7 +182,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
Loading