Skip to content

Commit

Permalink
annoying: Fixes for clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amosStarkware committed Mar 24, 2024
1 parent c434a2a commit b0a91b5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions crates/committer/src/patricia_merkle_tree.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pub mod patricia_merkle_node;
pub mod patricia_merkle_tree;
pub mod node;
pub mod tree;
1 change: 1 addition & 0 deletions crates/committer/src/patricia_merkle_tree/node.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub struct Node {}

This file was deleted.

14 changes: 0 additions & 14 deletions crates/committer/src/patricia_merkle_tree/patricia_merkle_tree.rs

This file was deleted.

13 changes: 13 additions & 0 deletions crates/committer/src/patricia_merkle_tree/tree.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use crate::patricia_merkle_tree::node::Node;


trait Tree {
/// Returns the node with given full (Merkle) index, if it exists.
fn get_node(full_index: u128) -> Option<Node>;

/// Returns the root if the tree is not empty.
fn get_root() -> Option<Node>;

/// Computes the hash of the given node.
fn compute_hash(node: Node) -> [u8; 32];
}

0 comments on commit b0a91b5

Please sign in to comment.