Add support for NonNull in ambiguous_wide_ptr_comparisions

This commit is contained in:
Urgau 2024-02-19 21:50:33 +01:00
parent af4a5a13a1
commit 16d11c539f
5 changed files with 139 additions and 65 deletions

View file

@ -243,6 +243,7 @@ where
T: Tag,
{
#[inline]
#[allow(ambiguous_wide_pointer_comparisons)]
fn eq(&self, other: &Self) -> bool {
self.packed == other.packed
}