Skip to content

Commit

Permalink
clean up trait bounds to reflect unification
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Mar 29, 2024
1 parent f393cff commit 24e9048
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ssz-rs/src/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ where

impl<T, const N: usize> GeneralizedIndexable for [T; N]
where
T: GeneralizedIndexable,
T: SimpleSerialize,
{
fn chunk_count() -> usize {
(N * T::item_length() + 31) / 32
Expand Down
2 changes: 1 addition & 1 deletion ssz-rs/src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ where

impl<T, const N: usize> GeneralizedIndexable for List<T, N>
where
T: SimpleSerialize + GeneralizedIndexable,
T: SimpleSerialize,
{
fn chunk_count() -> usize {
(N * T::item_length() + 31) / 32
Expand Down
4 changes: 2 additions & 2 deletions ssz-rs/src/vector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ where

impl<T, const N: usize> GeneralizedIndexable for Vector<T, N>
where
T: SimpleSerialize + GeneralizedIndexable,
T: SimpleSerialize,
{
fn chunk_count() -> usize {
(N * T::item_length() + 31) / 32
Expand Down Expand Up @@ -280,7 +280,7 @@ where

impl<T, const N: usize> Prove for Vector<T, N>
where
T: SimpleSerialize + GeneralizedIndexable + Prove,
T: SimpleSerialize + Prove,
{
fn prove(&mut self, index: GeneralizedIndex) -> Result<ProofAndWitness, MerkleizationError> {
todo!()
Expand Down

0 comments on commit 24e9048

Please sign in to comment.