Skip to content

Commit 4b2090a

Browse files
committed
feat: derive Clone for StableHasher
Due to the orphan rule, deriving `Clone` must happen inside this crate
1 parent cc85b7a commit 4b2090a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stable_hasher.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ pub trait ExtendedHasher: Hasher {
8888
/// let hash: Hash128 = hasher.finish();
8989
/// ```
9090
#[must_use]
91+
#[derive(Clone)]
9192
pub struct StableHasher<H: ExtendedHasher> {
9293
state: H,
9394
}

0 commit comments

Comments
 (0)