Fix some rust-clippy violations

This commit is contained in:
Corey Farwell 2015-10-30 18:41:22 -04:00
parent 1dfc0481ef
commit 16fa9cabc9
11 changed files with 37 additions and 42 deletions

View file

@ -885,8 +885,8 @@ 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,
match *n {
NodeOrString::eNode(ref n) => n != node,
_ => true,
}
})