diff options
Diffstat (limited to 'core/async_cancel.rs')
-rw-r--r-- | core/async_cancel.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/async_cancel.rs b/core/async_cancel.rs index 90cb0c41f..51ed4c647 100644 --- a/core/async_cancel.rs +++ b/core/async_cancel.rs @@ -334,7 +334,7 @@ mod internal { impl PartialEq for Node { fn eq(&self, other: &Self) -> bool { - self as *const _ == other as *const _ + std::ptr::eq(self, other) } } |