mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
Fix #9508: Beautify our union enums constructors
This commit is contained in:
parent
7c249b1d53
commit
2be49404be
13 changed files with 69 additions and 71 deletions
|
@ -866,7 +866,7 @@ fn first_node_not_in<I>(mut nodes: I, not_in: &[NodeOrString]) -> Option<Root<No
|
|||
nodes.find(|node| {
|
||||
not_in.iter().all(|n| {
|
||||
match *n {
|
||||
NodeOrString::eNode(ref n) => n != node,
|
||||
NodeOrString::Node(ref n) => n != node,
|
||||
_ => true,
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue