From b27a927413ce67290cb1b2aa128158e77fec5438 Mon Sep 17 00:00:00 2001 From: MozirDmitriy Date: Tue, 23 Sep 2025 12:03:12 +0300 Subject: [PATCH] chore(primitive-traits): remove redundant auto-trait bounds from FullNodePrimitives (#18626) Co-authored-by: Matthias Seitz --- crates/primitives-traits/src/node.rs | 40 +++++++++------------------- 1 file changed, 12 insertions(+), 28 deletions(-) diff --git a/crates/primitives-traits/src/node.rs b/crates/primitives-traits/src/node.rs index 42f7c74b1d..1f5bfed139 100644 --- a/crates/primitives-traits/src/node.rs +++ b/crates/primitives-traits/src/node.rs @@ -30,39 +30,23 @@ pub trait NodePrimitives: pub trait FullNodePrimitives where Self: NodePrimitives< - Block: FullBlock
, - BlockHeader: FullBlockHeader, - BlockBody: FullBlockBody, - SignedTx: FullSignedTx, - Receipt: FullReceipt, - > + Send - + Sync - + Unpin - + Clone - + Default - + fmt::Debug - + PartialEq - + Eq - + 'static, + Block: FullBlock
, + BlockHeader: FullBlockHeader, + BlockBody: FullBlockBody, + SignedTx: FullSignedTx, + Receipt: FullReceipt, + >, { } impl FullNodePrimitives for T where T: NodePrimitives< - Block: FullBlock
, - BlockHeader: FullBlockHeader, - BlockBody: FullBlockBody, - SignedTx: FullSignedTx, - Receipt: FullReceipt, - > + Send - + Sync - + Unpin - + Clone - + Default - + fmt::Debug - + PartialEq - + Eq - + 'static + Block: FullBlock
, + BlockHeader: FullBlockHeader, + BlockBody: FullBlockBody, + SignedTx: FullSignedTx, + Receipt: FullReceipt, + > { }