summaryrefslogtreecommitdiffstats
path: root/tiny_skia
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-01 01:39:43 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-05-01 01:39:43 +0200
commitb52c7bb610f593fffc624d461dca17ac50c81626 (patch)
tree19e1ac3268350b422154c6fd1cd3a585e250d3ac /tiny_skia
parentf5bc336d699d0c6440f6d638a5a437baaabe1e43 (diff)
downloadiced-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.rs4
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 {