mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +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> {
|
||||
fn eq(&self, other: &Root<T>) -> bool {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.ptr == other.ptr
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue