From 1c92eebbdef7efedd238251c4bd1fb323590c6e2 Mon Sep 17 00:00:00 2001 From: Philippe Laferriere Date: Wed, 17 Jan 2024 12:47:14 -0500 Subject: [PATCH] make `new_max_depth()` const --- src/merkle/smt/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/merkle/smt/mod.rs b/src/merkle/smt/mod.rs index e44cb57a..67bb8167 100644 --- a/src/merkle/smt/mod.rs +++ b/src/merkle/smt/mod.rs @@ -196,7 +196,7 @@ impl LeafIndex { } impl LeafIndex { - 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), }