From f1689e5b476be114db68dcffe16bd3dbfd315d09 Mon Sep 17 00:00:00 2001 From: Emilia Hane Date: Tue, 19 Nov 2024 20:04:47 +0100 Subject: [PATCH] Fix docs --- crates/primitives-traits/src/block/body.rs | 1 - crates/primitives-traits/src/lib.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/crates/primitives-traits/src/block/body.rs b/crates/primitives-traits/src/block/body.rs index 7fde0857aa48..bdfe9e0fa0b3 100644 --- a/crates/primitives-traits/src/block/body.rs +++ b/crates/primitives-traits/src/block/body.rs @@ -31,7 +31,6 @@ pub trait BlockBody: type Header: BlockHeader + 'static; /// Ordered list of signed transactions as committed in block. - // todo: requires trait for signed transaction type Transaction: Transaction; /// Returns reference to transactions in block. diff --git a/crates/primitives-traits/src/lib.rs b/crates/primitives-traits/src/lib.rs index 88e61f7edadc..114a2df88c15 100644 --- a/crates/primitives-traits/src/lib.rs +++ b/crates/primitives-traits/src/lib.rs @@ -107,11 +107,11 @@ impl MaybeSerde for T where T: serde::Serialize + for<'de> serde::Deserialize #[cfg(not(feature = "serde"))] impl MaybeSerde for T {} -/// Helper trait that requires databse encoding implementation since `reth-codecs` feature is +/// Helper trait that requires databse encoding implementation since `reth-codec` feature is /// enabled. #[cfg(feature = "reth-codec")] pub trait MaybeCompact: reth_codecs::Compact {} -/// Noop. Helper trait that would require database encoding implementation if `reth-codecs` feature +/// Noop. Helper trait that would require database encoding implementation if `reth-codec` feature /// were enabled. #[cfg(not(feature = "reth-codec"))] pub trait MaybeCompact {}