Skip to content

Commit 23d9255

Browse files
authored
feat: Derive some missing traits for MerkleizedColumn (#2862)
Needed for the state root service.
1 parent a8e24a8 commit 23d9255

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.changes/added/2862.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Derive `enum_iterator::Sequence` and `strum_macros::{EnumCount, IntoStaticStr}` for MerkleizedColumn.

crates/storage/src/merkle/column.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,17 @@ use alloc::{
1111
/// Almost in the case of all tables we need to prove exclusion of entries,
1212
/// in the case of malicious block.
1313
#[repr(u32)]
14-
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
14+
#[derive(
15+
Copy,
16+
Clone,
17+
Debug,
18+
PartialEq,
19+
Eq,
20+
Hash,
21+
enum_iterator::Sequence,
22+
strum_macros::EnumCount,
23+
strum_macros::IntoStaticStr,
24+
)]
1525
pub enum MerkleizedColumn<TC> {
1626
/// The column with the specific data.
1727
TableColumn(TC),

0 commit comments

Comments
 (0)