diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-31 14:57:47 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-05-31 14:57:47 +0200 |
commit | 919a4774dd1a77318bb0cb918c6c53beef1413b9 (patch) | |
tree | 023912049fa9ca7f9e642283143fdeb461a47f98 | |
parent | d95f5edc2d3fdb020798208f6c86945db01028a4 (diff) | |
download | servo-919a4774dd1a77318bb0cb918c6c53beef1413b9.tar.gz servo-919a4774dd1a77318bb0cb918c6c53beef1413b9.zip |
Avoid a literal "&Root<T>" in its PartialEq impl
-rw-r--r-- | components/script/dom/bindings/js.rs | 2 |
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 } } |