diff --git a/miden-crypto/src/merkle/sparse_path.rs b/miden-crypto/src/merkle/sparse_path.rs index 9cffb6d..2b25222 100644 --- a/miden-crypto/src/merkle/sparse_path.rs +++ b/miden-crypto/src/merkle/sparse_path.rs @@ -211,13 +211,13 @@ impl From for MerklePath { } } -/// # Errors -/// -/// This conversion returns [MerkleError::DepthTooBig] if the path length is greater than -/// [`SMT_MAX_DEPTH`]. impl TryFrom for SparseMerklePath { type Error = MerkleError; + /// # Errors + /// + /// This conversion returns [MerkleError::DepthTooBig] if the path length is greater than + /// [`SMT_MAX_DEPTH`]. fn try_from(path: MerklePath) -> Result { SparseMerklePath::from_sized_iter(path) }