mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
clippy:Fix clippy problems in components/scripts/binding (#31893)
* constants have by default a static lifetime * constants have by default a static lifetime * unneeded unit expression * unneeded unit expression * Box of default value * casting raw pointers * casting raw pointers
This commit is contained in:
parent
1f31609952
commit
bb7778774d
7 changed files with 12 additions and 16 deletions
|
@ -1870,7 +1870,6 @@ impl Node {
|
|||
// Step 1.
|
||||
match parent.type_id() {
|
||||
NodeTypeId::Document(_) | NodeTypeId::DocumentFragment(_) | NodeTypeId::Element(..) => {
|
||||
()
|
||||
},
|
||||
_ => return Err(Error::HierarchyRequest),
|
||||
}
|
||||
|
@ -2637,7 +2636,6 @@ impl NodeMethods for Node {
|
|||
// Step 1.
|
||||
match self.type_id() {
|
||||
NodeTypeId::Document(_) | NodeTypeId::DocumentFragment(_) | NodeTypeId::Element(..) => {
|
||||
()
|
||||
},
|
||||
_ => return Err(Error::HierarchyRequest),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue