From f742113d56658ce676a1b07bb6625aea17518313 Mon Sep 17 00:00:00 2001 From: Joshua Simmons Date: Sun, 31 Mar 2024 04:56:39 +0200 Subject: [PATCH] narcissus-core: Fix clippy lint --- engine/narcissus-core/src/ref_count.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/narcissus-core/src/ref_count.rs b/engine/narcissus-core/src/ref_count.rs index 6ec4c2d..a292da9 100644 --- a/engine/narcissus-core/src/ref_count.rs +++ b/engine/narcissus-core/src/ref_count.rs @@ -113,7 +113,7 @@ impl Rc { #[inline] pub fn ptr_eq(&self, other: &Self) -> bool { - self.ptr.as_ptr() == other.ptr.as_ptr() + std::ptr::eq(self.ptr.as_ptr(), other.ptr.as_ptr()) } #[inline] @@ -219,7 +219,7 @@ impl Arc { #[inline] pub fn ptr_eq(&self, other: &Self) -> bool { - self.ptr.as_ptr() == other.ptr.as_ptr() + std::ptr::eq(self.ptr.as_ptr(), other.ptr.as_ptr()) } #[inline] -- 2.49.0