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<dyn ...>` this could cause problems if the metadata were different.
This commit is contained in:
Filipe Rodrigues 2024-12-23 19:42:03 +00:00
parent 8ad23fe09a
commit b2e3c31b77
Signed by: zenithsiz
SSH Key Fingerprint: SHA256:Mb5ppb3Sh7IarBO/sBTXLHbYEOz37hJAlslLQPPAPaU

View File

@ -296,7 +296,7 @@ impl<F: ?Sized> Clone for WeakEffect<F> {
impl<F: ?Sized> Hash for WeakEffect<F> {
fn hash<H: core::hash::Hasher>(&self, state: &mut H) {
self.inner.as_ptr().hash(state);
self.inner_ptr().hash(state);
}
}