Skip to content

Commit

Permalink
in PartialEq impls, use Self instead of explicitly naming the struct …
Browse files Browse the repository at this point in the history
…type
  • Loading branch information
ajnirp committed Oct 21, 2015
1 parent ab70c8c commit 5e8dc36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/script/dom/bindings/js.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
Expand Down Expand Up @@ -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())
}
}
Expand Down

0 comments on commit 5e8dc36

Please sign in to comment.