diff --git a/src/accumulator/node_hash.rs b/src/accumulator/node_hash.rs index 74ebedd..aecdec0 100644 --- a/src/accumulator/node_hash.rs +++ b/src/accumulator/node_hash.rs @@ -57,14 +57,17 @@ use serde::{Deserialize, Serialize}; /// let hash = NodeHash::new([0; 32]); /// assert_eq!(hash.to_string().as_str(), "0000000000000000000000000000000000000000000000000000000000000000"); /// ``` -#[derive(Default)] pub enum NodeHash { - #[default] Empty, Placeholder, Some([u8; 32]), } +impl Default for NodeHash { + fn default() -> Self { + NodeHash::Empty + } +} impl Deref for NodeHash { type Target = [u8; 32];