diff options
Diffstat (limited to 'components/script/dom/bindings/js.rs')
-rw-r--r-- | components/script/dom/bindings/js.rs | 4 |
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()) } } |