summaryrefslogtreecommitdiffstats
path: root/src/hasher.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/hasher.rs')
-rw-r--r--src/hasher.rs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/hasher.rs b/src/hasher.rs
deleted file mode 100644
index 9f6aacce..00000000
--- a/src/hasher.rs
+++ /dev/null
@@ -1,19 +0,0 @@
-/// The hasher used to compare layouts.
-#[derive(Debug)]
-pub struct Hasher(twox_hash::XxHash64);
-
-impl Default for Hasher {
- fn default() -> Self {
- Hasher(twox_hash::XxHash64::default())
- }
-}
-
-impl core::hash::Hasher for Hasher {
- fn write(&mut self, bytes: &[u8]) {
- self.0.write(bytes)
- }
-
- fn finish(&self) -> u64 {
- self.0.finish()
- }
-}