From 6b9b900dd7ecfac6b2fc7faa998d97ffd4c64a42 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Sat, 10 May 2025 22:47:10 +0700 Subject: [PATCH] Fix `clippy::ptr_eq` lints --- harfbuzz/src/unicode_funcs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/harfbuzz/src/unicode_funcs.rs b/harfbuzz/src/unicode_funcs.rs index 558463e4..74428a52 100644 --- a/harfbuzz/src/unicode_funcs.rs +++ b/harfbuzz/src/unicode_funcs.rs @@ -38,7 +38,7 @@ impl UnicodeFuncsBuilder { // sets refcount to one, not zero. // https://harfbuzz.github.io/object-model-lifecycle.html let ufuncs = unsafe { hb_unicode_funcs_create(parent) }; - if ufuncs == parent { + if core::ptr::eq(ufuncs, parent) { return Err(Error::Alloc); } Ok(Self { raw: ufuncs }) @@ -51,7 +51,7 @@ impl UnicodeFuncsBuilder { // sets refcount to one, not zero. // https://harfbuzz.github.io/object-model-lifecycle.html let ufuncs = unsafe { hb_unicode_funcs_create(parent) }; - if ufuncs == parent { + if core::ptr::eq(ufuncs, parent) { return Err(Error::Alloc); } Ok(Self { raw: ufuncs })