From 3a89096daf636d40146c7aa351486480c67896d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Grzegorz=20=C5=9Awirski?= Date: Wed, 16 Apr 2025 09:50:20 +0200 Subject: [PATCH] move try_from doc to function level for better ide support --- miden-crypto/src/merkle/sparse_path.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) }