mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Avoid a literal "&Root<T>" in its PartialEq impl
This commit is contained in:
parent
d95f5edc2d
commit
919a4774dd
1 changed files with 1 additions and 1 deletions
|
@ -601,7 +601,7 @@ impl<T: Reflectable> Deref for Root<T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Reflectable> PartialEq for Root<T> {
|
impl<T: Reflectable> PartialEq for Root<T> {
|
||||||
fn eq(&self, other: &Root<T>) -> bool {
|
fn eq(&self, other: &Self) -> bool {
|
||||||
self.ptr == other.ptr
|
self.ptr == other.ptr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue