From 5e8dc366debdaac349b7aba204f29c53dfb1f827 Mon Sep 17 00:00:00 2001 From: Rohan Prinja Date: Thu, 22 Oct 2015 01:05:48 +0900 Subject: [PATCH] in PartialEq impls, use Self instead of explicitly naming the struct type --- components/script/dom/bindings/js.rs | 4 ++-- 1 file 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 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()) } }