aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2016-05-31 14:57:47 +0200
committerAnthony Ramine <n.oxyde@gmail.com>2016-05-31 14:57:47 +0200
commit919a4774dd1a77318bb0cb918c6c53beef1413b9 (patch)
tree023912049fa9ca7f9e642283143fdeb461a47f98
parentd95f5edc2d3fdb020798208f6c86945db01028a4 (diff)
downloadservo-919a4774dd1a77318bb0cb918c6c53beef1413b9.tar.gz
servo-919a4774dd1a77318bb0cb918c6c53beef1413b9.zip
Avoid a literal "&Root<T>" in its PartialEq impl
-rw-r--r--components/script/dom/bindings/js.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index f276cd259f0..f8ddb80e44b 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -601,7 +601,7 @@ impl<T: Reflectable> Deref for Root<T> {
}
impl<T: Reflectable> PartialEq for Root<T> {
- fn eq(&self, other: &Root<T>) -> bool {
+ fn eq(&self, other: &Self) -> bool {
self.ptr == other.ptr
}
}