diff options
author | Corey Farwell <coreyf@rwell.org> | 2015-10-30 18:41:22 -0400 |
---|---|---|
committer | Corey Farwell <coreyf@rwell.org> | 2015-10-30 18:41:22 -0400 |
commit | 16fa9cabc92e8c69c1161a20b58d0e32c7ab40c2 (patch) | |
tree | 434fe52411427d9dd609e922ea1d865ef95034af /components/script/dom/node.rs | |
parent | 1dfc0481efd4687658ab34e68c883caeadd8b20f (diff) | |
download | servo-16fa9cabc92e8c69c1161a20b58d0e32c7ab40c2.tar.gz servo-16fa9cabc92e8c69c1161a20b58d0e32c7ab40c2.zip |
Fix some rust-clippy violations
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 18c40157514..c5a891d56db 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -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, } }) |