Skip to content

Commit

Permalink
Update twoxhash to 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Oct 18, 2024
1 parent 85e83d6 commit cd131d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down
2 changes: 1 addition & 1 deletion provider/blob/tests/test_versions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit cd131d0

Please sign in to comment.