mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
clippy: Fix many warnings in components/script
(#31717)
* Fix Several clippy warnings * Fix Build errors * Fix Unused import * Fix requested changes * Fix rustfmt * Minor fixes --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
676f655647
commit
01ca220f83
41 changed files with 200 additions and 212 deletions
|
@ -317,7 +317,7 @@ impl TreeWalker {
|
|||
// return null."
|
||||
None => return Ok(None),
|
||||
Some(ref parent)
|
||||
if self.is_root_node(&parent) || self.is_current_node(&parent) =>
|
||||
if self.is_root_node(parent) || self.is_current_node(parent) =>
|
||||
{
|
||||
return Ok(None);
|
||||
},
|
||||
|
@ -382,7 +382,7 @@ impl TreeWalker {
|
|||
match node.GetParentNode() {
|
||||
// "4. If node is null or is root, return null."
|
||||
None => return Ok(None),
|
||||
Some(ref n) if self.is_root_node(&n) => return Ok(None),
|
||||
Some(ref n) if self.is_root_node(n) => return Ok(None),
|
||||
// "5. Filter node and if the return value is FILTER_ACCEPT, then return null."
|
||||
Some(n) => {
|
||||
node = n;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue