diff --git a/CHANGELOG.md b/CHANGELOG.md index 6167b3c056..ab42c49bbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -58,6 +58,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Changed +- Updated `hash32` from `0.3.0` to `1.0.0`. - Updated defmt from 0.3 to 1.0.1 - Changed the feature name from `defmt-03` to `defmt`. - Changed the error type of these methods from `()` to `CapacityError`. diff --git a/Cargo.toml b/Cargo.toml index ffafc5c538..21a7f82279 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,7 @@ nightly = [] [dependencies] bytes = { version = "1", default-features = false, optional = true } portable-atomic = { version = "1.0", optional = true } -hash32 = "0.3.0" +hash32 = { git = "https://github.com/rust-embedded-community/hash32.git", rev = "e25fe5b4d22a0e0eca9201add6c78b683d2fdc87" } 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 b89dcee927..d4916f245e 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};