diff --git a/Cargo.toml b/Cargo.toml index f4bdf53..31b941c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -84,7 +84,7 @@ serde = { version = "1.0.117", optional = true } cfg-if = "1.0" portable-atomic = { version = "1.0.0", optional = true } getrandom = { version = "0.2.7", optional = true } -zerocopy = { version = "0.7.31", default-features = false, features = ["simd"] } +zerocopy = { version = "0.8.1", default-features = false, features = ["simd"] } [target.'cfg(not(all(target_arch = "arm", target_os = "none")))'.dependencies] once_cell = { version = "1.18.0", default-features = false, features = ["alloc"] } diff --git a/src/hash_quality_test.rs b/src/hash_quality_test.rs index f85e18a..6f3675e 100644 --- a/src/hash_quality_test.rs +++ b/src/hash_quality_test.rs @@ -70,7 +70,7 @@ fn test_no_full_collisions(gen_hash: impl Fn() -> T) { gen_combinations(&options, 7, Vec::new(), &mut combinations); let mut map: HashMap> = HashMap::new(); for combination in combinations { - use zerocopy::AsBytes; + use zerocopy::IntoBytes; let array = combination.as_slice().as_bytes().to_vec(); let mut hasher = gen_hash(); hasher.write(&array);