diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2025-06-16 09:12:16 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2025-06-16 09:12:16 +0000 |
| commit | 3a2697d9437a649d47ec1297748a89e1de683f4d (patch) | |
| tree | d1ce53e98a8de9187324b9be4e534abe60631e9f /src/merkle/node.rs | |
| parent | bb3eadc0756062e82a6feb73d4bae5bd1cb18917 (diff) | |
Rename `DefaultHasher` to `DummyHasher`
Diffstat (limited to 'src/merkle/node.rs')
| -rw-r--r-- | src/merkle/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/merkle/node.rs b/src/merkle/node.rs index 021b1c3..cef5c1f 100644 --- a/src/merkle/node.rs +++ b/src/merkle/node.rs @@ -48,7 +48,7 @@ impl Node { /// * `hasher` - A reference to a hashing strategy. /// * `data` - The data to be hashed and stored as a leaf. pub fn new_leaf(hasher: &dyn Hasher, data: &[u8]) -> Self { - let hash = hasher.hash(&data); + let hash = hasher.hash(data); Self { hash, data: data.to_vec(), |
