diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-12-30 11:37:11 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-12-30 12:00:12 +0100 |
| commit | f5dcb84e36a38182218c7f907b861b12d2bd2c1c (patch) | |
| tree | 1fce04fb53d2ad5b61f5f3151e43d80e2684e579 /src/layout/mod.rs | |
| parent | fef55025177ea4f248e61b68fab365bfbc0e47fb (diff) | |
Make clippy a bit happier
Diffstat (limited to 'src/layout/mod.rs')
| -rw-r--r-- | src/layout/mod.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 114e7491..4c982bb8 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -282,7 +282,10 @@ impl Debug for PackedNode { impl PartialEq for PackedNode { fn eq(&self, other: &Self) -> bool { - Rc::as_ptr(&self.node) as *const () == Rc::as_ptr(&other.node) as *const () + std::ptr::eq( + Rc::as_ptr(&self.node) as *const (), + Rc::as_ptr(&other.node) as *const (), + ) } } |
