mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 07:17:56 -05:00
chore(primitive-traits): remove redundant auto-trait bounds from FullNodePrimitives (#18626)
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
@@ -30,39 +30,23 @@ pub trait NodePrimitives:
|
||||
pub trait FullNodePrimitives
|
||||
where
|
||||
Self: NodePrimitives<
|
||||
Block: FullBlock<Header = Self::BlockHeader, Body = Self::BlockBody>,
|
||||
BlockHeader: FullBlockHeader,
|
||||
BlockBody: FullBlockBody<Transaction = Self::SignedTx>,
|
||||
SignedTx: FullSignedTx,
|
||||
Receipt: FullReceipt,
|
||||
> + Send
|
||||
+ Sync
|
||||
+ Unpin
|
||||
+ Clone
|
||||
+ Default
|
||||
+ fmt::Debug
|
||||
+ PartialEq
|
||||
+ Eq
|
||||
+ 'static,
|
||||
Block: FullBlock<Header = Self::BlockHeader, Body = Self::BlockBody>,
|
||||
BlockHeader: FullBlockHeader,
|
||||
BlockBody: FullBlockBody<Transaction = Self::SignedTx>,
|
||||
SignedTx: FullSignedTx,
|
||||
Receipt: FullReceipt,
|
||||
>,
|
||||
{
|
||||
}
|
||||
|
||||
impl<T> FullNodePrimitives for T where
|
||||
T: NodePrimitives<
|
||||
Block: FullBlock<Header = Self::BlockHeader, Body = Self::BlockBody>,
|
||||
BlockHeader: FullBlockHeader,
|
||||
BlockBody: FullBlockBody<Transaction = Self::SignedTx>,
|
||||
SignedTx: FullSignedTx,
|
||||
Receipt: FullReceipt,
|
||||
> + Send
|
||||
+ Sync
|
||||
+ Unpin
|
||||
+ Clone
|
||||
+ Default
|
||||
+ fmt::Debug
|
||||
+ PartialEq
|
||||
+ Eq
|
||||
+ 'static
|
||||
Block: FullBlock<Header = Self::BlockHeader, Body = Self::BlockBody>,
|
||||
BlockHeader: FullBlockHeader,
|
||||
BlockBody: FullBlockBody<Transaction = Self::SignedTx>,
|
||||
SignedTx: FullSignedTx,
|
||||
Receipt: FullReceipt,
|
||||
>
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user