Skip to content

Commit

Permalink
clean up prelude export
Browse files Browse the repository at this point in the history
  • Loading branch information
ralexstokes committed Jan 23, 2023
1 parent 7574018 commit 1a2c446
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ssz-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ pub use bitvector::Bitvector;
pub use de::{Deserialize, DeserializeError};
pub use error::Error;
pub use list::List;
pub use merkleization::{Context as MerkleizationContext, MerkleizationError, Merkleized, Node};
pub use merkleization::{MerkleizationError, Merkleized, Node};
pub use ser::{Serialize, SerializeError};
pub use uint::U256;
pub use utils::*;
Expand Down Expand Up @@ -80,6 +80,7 @@ pub mod prelude {
pub use crate::bitvector::Bitvector;
pub use crate::de::Deserialize;
pub use crate::de::DeserializeError;
pub use crate::error::{InstanceError, TypeError};
pub use crate::list::List;
pub use crate::merkleization::{
is_valid_merkle_branch, merkleize, mix_in_selector, pack, pack_bytes, MerkleizationError,
Expand All @@ -90,7 +91,6 @@ pub mod prelude {
pub use crate::utils::{deserialize, serialize};
pub use crate::vector::Vector;
pub use crate::Error as SimpleSerializeError;
pub use crate::MerkleizationContext;
pub use crate::SimpleSerialize;
pub use crate::Sized;
pub use ssz_rs_derive::SimpleSerialize;
Expand Down
2 changes: 1 addition & 1 deletion ssz-rs/src/merkleization/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn hash_nodes(hasher: &mut Sha256, a: &[u8], b: &[u8], out: &mut [u8]) {
const MAX_MERKLE_TREE_DEPTH: usize = 64;

#[derive(Debug)]
pub struct Context {
struct Context {
zero_hashes: [u8; MAX_MERKLE_TREE_DEPTH * BYTES_PER_CHUNK],
}

Expand Down

0 comments on commit 1a2c446

Please sign in to comment.