Skip to content

Commit 961960d

Browse files
Fix clippy::ptr_eq lints (#269)
1 parent a0367ef commit 961960d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

harfbuzz/src/unicode_funcs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl UnicodeFuncsBuilder {
3838
// sets refcount to one, not zero.
3939
// https://harfbuzz.github.io/object-model-lifecycle.html
4040
let ufuncs = unsafe { hb_unicode_funcs_create(parent) };
41-
if ufuncs == parent {
41+
if core::ptr::eq(ufuncs, parent) {
4242
return Err(Error::Alloc);
4343
}
4444
Ok(Self { raw: ufuncs })
@@ -51,7 +51,7 @@ impl UnicodeFuncsBuilder {
5151
// sets refcount to one, not zero.
5252
// https://harfbuzz.github.io/object-model-lifecycle.html
5353
let ufuncs = unsafe { hb_unicode_funcs_create(parent) };
54-
if ufuncs == parent {
54+
if core::ptr::eq(ufuncs, parent) {
5555
return Err(Error::Alloc);
5656
}
5757
Ok(Self { raw: ufuncs })

0 commit comments

Comments
 (0)