move try_from doc to function level for better ide support
This commit is contained in:
parent
d32e8c9fcb
commit
4e97f0a192
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 {
|
impl TryFrom<MerklePath> for SparseMerklePath {
|
||||||
type Error = MerkleError;
|
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> {
|
fn try_from(path: MerklePath) -> Result<Self, MerkleError> {
|
||||||
SparseMerklePath::from_sized_iter(path)
|
SparseMerklePath::from_sized_iter(path)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue