clippy: Fix several warnings in components/script/dom/bindings (#31945)

* clippy: fix several warnings in components/script/dom/bindings

* fix: allow non_canonical_clone_impl in components/script/dom/bindings

* chore: removed unnecessary curly braces

* fix: removed vtable_address_comparisons allow
This commit is contained in:
Azhar Ismagulova 2024-04-03 18:19:53 +01:00 committed by GitHub
parent 03b752289e
commit 37cf4cf207
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 5 deletions

View file

@ -520,9 +520,10 @@ impl<T> Clone for Dom<T> {
impl<T> Clone for LayoutDom<'_, T> {
#[inline]
#[allow(clippy::non_canonical_clone_impl)]
fn clone(&self) -> Self {
assert_in_layout();
LayoutDom { value: self.value }
*self
}
}