Skip to content

Commit

Permalink
make new_max_depth() const
Browse files Browse the repository at this point in the history
  • Loading branch information
plafer committed Jan 18, 2024
1 parent 5d76006 commit 1c92eeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/merkle/smt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl<const DEPTH: u8> LeafIndex<DEPTH> {
}

impl LeafIndex<SMT_MAX_DEPTH> {
pub fn new_max_depth(value: u64) -> Self {
pub const fn new_max_depth(value: u64) -> Self {
LeafIndex {
index: NodeIndex::new_unchecked(SMT_MAX_DEPTH, value),
}
Expand Down

0 comments on commit 1c92eeb

Please sign in to comment.