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/hasher.rs | |
| parent | bb3eadc0756062e82a6feb73d4bae5bd1cb18917 (diff) | |
Rename `DefaultHasher` to `DummyHasher`
Diffstat (limited to 'src/hasher.rs')
| -rw-r--r-- | src/hasher.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hasher.rs b/src/hasher.rs index 101b23c..38d6567 100644 --- a/src/hasher.rs +++ b/src/hasher.rs @@ -14,9 +14,9 @@ pub trait Hasher { /// A dummy hasher used for testing or demonstration purposes. /// /// Always returns a static hash value. -pub struct DefaultHasher; +pub struct DummyHasher; -impl Hasher for DefaultHasher { +impl Hasher for DummyHasher { fn hash(&self, _input: &[u8]) -> String { "0xc0ff3".to_string() } |
