diff options
author | 2024-04-01 11:59:46 +0200 | |
---|---|---|
committer | 2024-04-01 12:00:15 +0200 | |
commit | f5bcfec8211c04c4b05f63d01d52d3e5d2cc123e (patch) | |
tree | 4a9f0699548cea15b43743dcf00d5628890610ab /core/src/image.rs | |
parent | 14ed71e09b648693dfca9eb29f14147c5c03a6bc (diff) | |
download | iced-f5bcfec8211c04c4b05f63d01d52d3e5d2cc123e.tar.gz iced-f5bcfec8211c04c4b05f63d01d52d3e5d2cc123e.tar.bz2 iced-f5bcfec8211c04c4b05f63d01d52d3e5d2cc123e.zip |
Use `rustc-hash` for most of our `HashMap` and `HashSet` instances
Diffstat (limited to 'core/src/image.rs')
-rw-r--r-- | core/src/image.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/image.rs b/core/src/image.rs index 32b95f03..dc74e5c1 100644 --- a/core/src/image.rs +++ b/core/src/image.rs @@ -1,6 +1,7 @@ //! Load and draw raster graphics. -use crate::{Hasher, Rectangle, Size}; +use crate::{Rectangle, Size}; +use rustc_hash::FxHasher; use std::hash::{Hash, Hasher as _}; use std::path::PathBuf; use std::sync::Arc; @@ -50,7 +51,7 @@ impl Handle { } fn from_data(data: Data) -> Handle { - let mut hasher = Hasher::default(); + let mut hasher = FxHasher::default(); data.hash(&mut hasher); Handle { |