Fix errors raised by the new clippy

This commit is contained in:
Zhang Junyang
2023-12-24 11:44:45 +08:00
committed by Tate, Hongliang Tian
parent 94f8914a5e
commit e922eaa428
4 changed files with 5 additions and 5 deletions

View File

@ -179,7 +179,7 @@ impl<T: ?Sized> From<KeyableArc<T>> for Arc<T> {
impl<T: ?Sized> PartialEq for KeyableArc<T> {
fn eq(&self, other: &Self) -> bool {
Arc::as_ptr(&self.0) == Arc::as_ptr(&other.0)
core::ptr::eq(Arc::as_ptr(&self.0), Arc::as_ptr(&other.0))
}
}
@ -270,7 +270,7 @@ impl<T: ?Sized> KeyableWeak<T> {
impl<T: ?Sized> PartialEq for KeyableWeak<T> {
fn eq(&self, other: &Self) -> bool {
self.0.as_ptr() == other.0.as_ptr()
core::ptr::eq(self.0.as_ptr(), other.0.as_ptr())
}
}