Skip to content

Commit

Permalink
Feat: Implement Default for in-memory Merkle trees (#105)
Browse files Browse the repository at this point in the history
* Impl Default for in-memory Merkle trees

* Formatting
  • Loading branch information
bvrooman authored Jun 24, 2022
1 parent 6845863 commit a4aa7f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fuel-merkle/src/binary/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ impl MerkleTree {
}
}

impl Default for MerkleTree {
fn default() -> Self {
Self::new()
}
}

#[cfg(test)]
mod test {
use super::*;
Expand Down
6 changes: 6 additions & 0 deletions fuel-merkle/src/sparse/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ impl MerkleTree {
}
}

impl Default for MerkleTree {
fn default() -> Self {
Self::new()
}
}

#[cfg(test)]
mod test {
use super::*;
Expand Down

0 comments on commit a4aa7f5

Please sign in to comment.