aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/js.rs
diff options
context:
space:
mode:
authorRohan Prinja <rohan.prinja@gmail.com>2015-10-22 01:05:48 +0900
committerRohan Prinja <rohan.prinja@gmail.com>2015-10-22 01:05:48 +0900
commit5e8dc366debdaac349b7aba204f29c53dfb1f827 (patch)
tree575def2e407a8d3c43e2c31a9cf0ac8d5cf299ff /components/script/dom/bindings/js.rs
parentab70c8c9421f09df9f705628d405de3109dcefd3 (diff)
downloadservo-5e8dc366debdaac349b7aba204f29c53dfb1f827.tar.gz
servo-5e8dc366debdaac349b7aba204f29c53dfb1f827.zip
in PartialEq impls, use Self instead of explicitly naming the struct type
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r--components/script/dom/bindings/js.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/js.rs b/components/script/dom/bindings/js.rs
index 7c44555924d..5e8ce0d731d 100644
--- a/components/script/dom/bindings/js.rs
+++ b/components/script/dom/bindings/js.rs
@@ -261,7 +261,7 @@ impl<T: HeapGCValue> HeapSizeOf for MutHeap<T> {
}
impl<T: Reflectable> PartialEq for MutHeap<JS<T>> {
- fn eq(&self, other: &MutHeap<JS<T>>) -> bool {
+ fn eq(&self, other: &Self) -> bool {
self.get().eq(&other.get())
}
}
@@ -344,7 +344,7 @@ impl<T: HeapGCValue> HeapSizeOf for MutNullableHeap<T> {
}
impl<T: Reflectable> PartialEq for MutNullableHeap<JS<T>> {
- fn eq(&self, other: &MutNullableHeap<JS<T>>) -> bool {
+ fn eq(&self, other: &Self>) -> bool {
self.get().eq(&other.get())
}
}