Fix #9508: Beautify our union enums constructors

This commit is contained in:
Alexander Lopatin 2016-02-07 02:55:21 +03:00
parent 7c249b1d53
commit 2be49404be
13 changed files with 69 additions and 71 deletions

View file

@ -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,
}
})