move try_from doc to function level for better ide support
This commit is contained in:
parent
a2a315d46d
commit
33e2d226a1
1 changed files with 4 additions and 4 deletions
|
@ -211,13 +211,13 @@ impl From<SparseMerklePath> for MerklePath {
|
|||
}
|
||||
}
|
||||
|
||||
/// # Errors
|
||||
///
|
||||
/// This conversion returns [MerkleError::DepthTooBig] if the path length is greater than
|
||||
/// [`SMT_MAX_DEPTH`].
|
||||
impl TryFrom<MerklePath> 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<Self, MerkleError> {
|
||||
SparseMerklePath::from_sized_iter(path)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue