diff options
author | 2024-05-01 01:39:43 +0200 | |
---|---|---|
committer | 2024-05-01 01:39:43 +0200 | |
commit | b52c7bb610f593fffc624d461dca17ac50c81626 (patch) | |
tree | 19e1ac3268350b422154c6fd1cd3a585e250d3ac /tiny_skia | |
parent | f5bc336d699d0c6440f6d638a5a437baaabe1e43 (diff) | |
download | iced-b52c7bb610f593fffc624d461dca17ac50c81626.tar.gz iced-b52c7bb610f593fffc624d461dca17ac50c81626.tar.bz2 iced-b52c7bb610f593fffc624d461dca17ac50c81626.zip |
Use an opaque `Id` type for `image::Handle`
Hashing pointers is a terrible idea.
Diffstat (limited to 'tiny_skia')
-rw-r--r-- | tiny_skia/src/raster.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tiny_skia/src/raster.rs b/tiny_skia/src/raster.rs index 59f1e4d5..907fce7c 100644 --- a/tiny_skia/src/raster.rs +++ b/tiny_skia/src/raster.rs @@ -71,8 +71,8 @@ impl Pipeline { #[derive(Debug, Default)] struct Cache { - entries: FxHashMap<u64, Option<Entry>>, - hits: FxHashSet<u64>, + entries: FxHashMap<raster::Id, Option<Entry>>, + hits: FxHashSet<raster::Id>, } impl Cache { |