From b2e3c31b77c0d7ee1c09e87caca18ee8bd0d4249 Mon Sep 17 00:00:00 2001 From: Filipe Rodrigues Date: Mon, 23 Dec 2024 19:42:03 +0000 Subject: [PATCH] Fixed `trigger::test::basic` test failing due to hash impl. Although most pointers are hashed the same, fat pointers are hashed with their metadata, so when hashing an `Effect` this could cause problems if the metadata were different. --- dynatos-reactive/src/effect.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynatos-reactive/src/effect.rs b/dynatos-reactive/src/effect.rs index e7987ae..3336fac 100644 --- a/dynatos-reactive/src/effect.rs +++ b/dynatos-reactive/src/effect.rs @@ -296,7 +296,7 @@ impl Clone for WeakEffect { impl Hash for WeakEffect { fn hash(&self, state: &mut H) { - self.inner.as_ptr().hash(state); + self.inner_ptr().hash(state); } }