From 9cbf5a433d2a2aafe4e65eebcd6bd375d05d30b7 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Fri, 18 Oct 2024 12:36:28 -0700 Subject: [PATCH] Update twoxhash to 2.0 --- Cargo.toml | 2 +- provider/blob/tests/test_versions.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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..695a599a3f9 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();