clippy: Fix another set of clippy problems in components/script/dom (#31909)

* a reference to a reference

* length comparison to zero

* length comparison to zero

* length comparison to zero
This commit is contained in:
Rosemary Ajayi 2024-03-28 12:33:29 +01:00 committed by GitHub
parent af358f51db
commit 18054d0737
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 19 additions and 19 deletions

View file

@ -71,7 +71,7 @@ impl DOMTokenList {
// https://dom.spec.whatwg.org/#concept-dtl-update
fn perform_update_steps(&self, atoms: Vec<Atom>) {
// Step 1
if !self.element.has_attribute(&self.local_name) && atoms.len() == 0 {
if !self.element.has_attribute(&self.local_name) && atoms.is_empty() {
return;
}
// step 2