mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
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:
parent
af358f51db
commit
18054d0737
5 changed files with 19 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue