mirror of
https://github.com/Zenithsiz/dynatos.git
synced 2026-02-07 12:44:53 +00:00
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:
parent
8ad23fe09a
commit
b2e3c31b77
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user