mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
in PartialEq impls, use Self instead of explicitly naming the struct type
This commit is contained in:
parent
ab70c8c942
commit
5e8dc366de
1 changed files with 2 additions and 2 deletions
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue