From ce8bb2e48738ba2943b62967e05a8b1ab0309689 Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Sat, 26 Apr 2025 13:01:34 -0700 Subject: [PATCH] hash32: 0.3.0 -> 1.0.0 --- CHANGELOG.md | 1 + Cargo.toml | 2 +- src/de.rs | 3 +-- src/index_map.rs | 4 ++-- src/index_set.rs | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c561d8d78..4d0c33e225 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Implement `Default` for `CapacityError`. - Implement `defmt::Format` for `CapacityError`. +- Updated `hash32` from `0.3.0` to `1.0.0`. ## [v0.9.1] - 2025-08-19 diff --git a/Cargo.toml b/Cargo.toml index a900f6758f..b5ed18dca0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -58,7 +58,7 @@ nightly = [] [dependencies] bytes = { version = "1", default-features = false, optional = true } portable-atomic = { version = "1.0", optional = true } -hash32 = "0.3.0" +hash32 = "1" serde = { version = "1", optional = true, default-features = false } ufmt = { version = "0.2", optional = true } ufmt-write = { version = "0.1", optional = true } diff --git a/src/de.rs b/src/de.rs index 7c1cb5bc81..e073e394c9 100644 --- a/src/de.rs +++ b/src/de.rs @@ -4,10 +4,9 @@ use crate::{ }; use core::{ fmt, - hash::{Hash, Hasher}, + hash::{BuildHasherDefault, Hash, Hasher}, marker::PhantomData, }; -use hash32::BuildHasherDefault; use serde::de::{self, Deserialize, Deserializer, Error, MapAccess, SeqAccess}; // Sequential containers diff --git a/src/index_map.rs b/src/index_map.rs index 348462403c..92c8d92520 100644 --- a/src/index_map.rs +++ b/src/index_map.rs @@ -2,13 +2,13 @@ use core::{ borrow::Borrow, fmt, - hash::{BuildHasher, Hash}, + hash::{BuildHasher, BuildHasherDefault, Hash}, mem, num::NonZeroU32, ops, slice, }; -use hash32::{BuildHasherDefault, FnvHasher}; +use hash32::FnvHasher; use crate::Vec; diff --git a/src/index_set.rs b/src/index_set.rs index 53fd0ea307..4789117b68 100644 --- a/src/index_set.rs +++ b/src/index_set.rs @@ -2,10 +2,10 @@ use core::{ borrow::Borrow, fmt, - hash::{BuildHasher, Hash}, + hash::{BuildHasher, BuildHasherDefault, Hash}, }; -use hash32::{BuildHasherDefault, FnvHasher}; +use hash32::FnvHasher; use crate::index_map::{self, IndexMap};