Avoid a literal "&Root<T>" in its PartialEq impl

This commit is contained in:
Anthony Ramine 2016-05-31 14:57:47 +02:00
parent d95f5edc2d
commit 919a4774dd

View file

@ -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
}
}