diff --git a/Cargo.toml b/Cargo.toml index 4a07425feec..4dfaf46362d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -256,7 +256,7 @@ serde = { version = "1.0.110", default-features = false } serde-json-core = { version = "0.4.0", default-features = false } smallvec = { version = "1.10.0", default-features = false } stable_deref_trait = { version = "1.2.0", default-features = false } -twox-hash = { version = "1.4.2", default-features = false } +twox-hash = { version = "2.0.0", default-features = false, features = ["xxhash64"] } unicode-bidi = { version = "0.3.11", default-features = false } utf16_iter = { version = "1.0.2", default-features = false } utf8_iter = { version = "1.0.2", default-features = false } diff --git a/provider/blob/tests/test_versions.rs b/provider/blob/tests/test_versions.rs index 3033802d626..57684d8436e 100644 --- a/provider/blob/tests/test_versions.rs +++ b/provider/blob/tests/test_versions.rs @@ -130,7 +130,7 @@ fn test_format_bigger() { // Rather than check in a 10MB file, we just compute hashes println!("Computing hash ...."); // Construct a hasher with a random, stable seed - let mut hasher = twox_hash::XxHash64::with_seed(1234); + let hash = twox_hash::XxHash64::oneshot(1234, &blob); hasher.write(&blob); let hash = hasher.finish();