mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
clippy: Fix warnings in components/layout
(#31612)
* clippy: fix warnings in components/layout * fix: formatting
This commit is contained in:
parent
7f1ef4c7fe
commit
a6e25d555b
17 changed files with 129 additions and 150 deletions
|
@ -35,8 +35,9 @@ pub struct UnsafeFlow(*const dyn Flow);
|
|||
unsafe impl Sync for UnsafeFlow {}
|
||||
unsafe impl Send for UnsafeFlow {}
|
||||
impl PartialEq for UnsafeFlow {
|
||||
#[allow(clippy::ptr_eq)]
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
// Compare the pointers explicitly to avoid clippy lint
|
||||
// Compare the pointers explicitly to avoid a clippy error
|
||||
self.0 as *const u8 == other.0 as *const u8
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue