Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Salka1988 committed Oct 9, 2023
1 parent 0c64507 commit 97c70cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions fuel-merkle/src/binary/in_memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ pub struct MerkleRootCalculator {

impl MerkleRootCalculator {
pub fn new() -> Self {
Self {
stack: Vec::new(),
}
Self { stack: Vec::new() }
}

pub fn push(&mut self, data: &[u8]) {
Expand All @@ -94,8 +92,10 @@ impl MerkleRootCalculator {
while let Some(last_merged) = self.stack.last() {
if self.stack.len() > 1 {
if let Some(second_last_merged) =
self.stack.get(self.stack.len() - 2) {
if last_merged.height() == second_last_merged.height() {
self.stack.get(self.stack.len() - 2)
{
if last_merged.height() == second_last_merged.height()
{
let merged_node = Node::create_node(
second_last_merged,
last_merged,
Expand Down

0 comments on commit 97c70cd

Please sign in to comment.