From 24e90482335fd8905625160ea9dbb7eba1ebc1b3 Mon Sep 17 00:00:00 2001 From: Alex Stokes Date: Fri, 29 Mar 2024 10:57:47 -0600 Subject: [PATCH] clean up trait bounds to reflect unification --- ssz-rs/src/array.rs | 2 +- ssz-rs/src/list.rs | 2 +- ssz-rs/src/vector.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ssz-rs/src/array.rs b/ssz-rs/src/array.rs index 01c63ce2..ec235a8b 100644 --- a/ssz-rs/src/array.rs +++ b/ssz-rs/src/array.rs @@ -92,7 +92,7 @@ where impl GeneralizedIndexable for [T; N] where - T: GeneralizedIndexable, + T: SimpleSerialize, { fn chunk_count() -> usize { (N * T::item_length() + 31) / 32 diff --git a/ssz-rs/src/list.rs b/ssz-rs/src/list.rs index eae37130..0d351443 100644 --- a/ssz-rs/src/list.rs +++ b/ssz-rs/src/list.rs @@ -252,7 +252,7 @@ where impl GeneralizedIndexable for List where - T: SimpleSerialize + GeneralizedIndexable, + T: SimpleSerialize, { fn chunk_count() -> usize { (N * T::item_length() + 31) / 32 diff --git a/ssz-rs/src/vector.rs b/ssz-rs/src/vector.rs index 25c6d89d..39015cc1 100644 --- a/ssz-rs/src/vector.rs +++ b/ssz-rs/src/vector.rs @@ -249,7 +249,7 @@ where impl GeneralizedIndexable for Vector where - T: SimpleSerialize + GeneralizedIndexable, + T: SimpleSerialize, { fn chunk_count() -> usize { (N * T::item_length() + 31) / 32 @@ -280,7 +280,7 @@ where impl Prove for Vector where - T: SimpleSerialize + GeneralizedIndexable + Prove, + T: SimpleSerialize + Prove, { fn prove(&mut self, index: GeneralizedIndex) -> Result { todo!()