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 HeapSizeOf for MutHeap { } impl PartialEq for MutHeap> { - fn eq(&self, other: &MutHeap>) -> bool { + fn eq(&self, other: &Self) -> bool { self.get().eq(&other.get()) } } @@ -344,7 +344,7 @@ impl HeapSizeOf for MutNullableHeap { } impl PartialEq for MutNullableHeap> { - fn eq(&self, other: &MutNullableHeap>) -> bool { + fn eq(&self, other: &Self>) -> bool { self.get().eq(&other.get()) } }