We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
clippy::ptr_eq
1 parent a0367ef commit 961960dCopy full SHA for 961960d
harfbuzz/src/unicode_funcs.rs
@@ -38,7 +38,7 @@ impl UnicodeFuncsBuilder {
38
// sets refcount to one, not zero.
39
// https://harfbuzz.github.io/object-model-lifecycle.html
40
let ufuncs = unsafe { hb_unicode_funcs_create(parent) };
41
- if ufuncs == parent {
+ if core::ptr::eq(ufuncs, parent) {
42
return Err(Error::Alloc);
43
}
44
Ok(Self { raw: ufuncs })
@@ -51,7 +51,7 @@ impl UnicodeFuncsBuilder {
51
52
53
54
55
56
57
0 commit comments