diff --git a/bytestring/Cargo.toml b/bytestring/Cargo.toml index 3fc43fe8..6af76031 100644 --- a/bytestring/Cargo.toml +++ b/bytestring/Cargo.toml @@ -24,4 +24,4 @@ serde = { version = "1.0", optional = true } [dev-dependencies] serde_json = "1.0" -siphasher = "0.3" +ahash = { version = "0.6", default-features = false } diff --git a/bytestring/src/lib.rs b/bytestring/src/lib.rs index 11c5a75a..63ba92ed 100644 --- a/bytestring/src/lib.rs +++ b/bytestring/src/lib.rs @@ -224,7 +224,7 @@ mod test { use alloc::borrow::ToOwned; use core::hash::{Hash, Hasher}; - use siphasher::sip::SipHasher; + use ahash::AHasher; use super::*; @@ -243,10 +243,10 @@ mod test { #[test] fn test_hash() { - let mut hasher1 = SipHasher::default(); + let mut hasher1 = AHasher::default(); "str".hash(&mut hasher1); - let mut hasher2 = SipHasher::default(); + let mut hasher2 = AHasher::default(); let s = ByteString::from_static("str"); s.hash(&mut hasher2); assert_eq!(hasher1.finish(), hasher2.finish());