diff options
author | 2024-03-30 15:57:12 +0100 | |
---|---|---|
committer | 2024-03-30 15:57:50 +0100 | |
commit | faa53647cc83577e1ecb81a450c948b3fa4203e0 (patch) | |
tree | 388f4dfa961d464643891593d4c2ac420ac6d458 /core | |
parent | 35af0aa84f76daddbb6d6959f9746bd09e306278 (diff) | |
download | iced-faa53647cc83577e1ecb81a450c948b3fa4203e0.tar.gz iced-faa53647cc83577e1ecb81a450c948b3fa4203e0.tar.bz2 iced-faa53647cc83577e1ecb81a450c948b3fa4203e0.zip |
Replace `xxhash-rust` with `rustc-hash`
Diffstat (limited to 'core')
-rw-r--r-- | core/Cargo.toml | 2 | ||||
-rw-r--r-- | core/src/hasher.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/Cargo.toml b/core/Cargo.toml index 32d233ee..d3529d98 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -21,10 +21,10 @@ log.workspace = true num-traits.workspace = true once_cell.workspace = true palette.workspace = true +rustc-hash.workspace = true smol_str.workspace = true thiserror.workspace = true web-time.workspace = true -xxhash-rust.workspace = true dark-light.workspace = true dark-light.optional = true diff --git a/core/src/hasher.rs b/core/src/hasher.rs index a13d78af..13180e41 100644 --- a/core/src/hasher.rs +++ b/core/src/hasher.rs @@ -1,7 +1,7 @@ /// The hasher used to compare layouts. #[allow(missing_debug_implementations)] // Doesn't really make sense to have debug on the hasher state anyways. #[derive(Default)] -pub struct Hasher(xxhash_rust::xxh3::Xxh3); +pub struct Hasher(rustc_hash::FxHasher); impl core::hash::Hasher for Hasher { fn write(&mut self, bytes: &[u8]) { |