Consistently use 'other: &Self' in homogeneous comparison impls
diff --git a/syntax/impls.rs b/syntax/impls.rs
index 3a0b3e0..ee4b641 100644
--- a/syntax/impls.rs
+++ b/syntax/impls.rs
@@ -6,7 +6,7 @@
use std::ops::{Deref, DerefMut};
impl PartialEq for Include {
- fn eq(&self, other: &Include) -> bool {
+ fn eq(&self, other: &Self) -> bool {
let Include {
path,
kind,
@@ -61,7 +61,7 @@
impl Eq for Type {}
impl PartialEq for Type {
- fn eq(&self, other: &Type) -> bool {
+ fn eq(&self, other: &Self) -> bool {
match (self, other) {
(Type::Ident(lhs), Type::Ident(rhs)) => lhs == rhs,
(Type::RustBox(lhs), Type::RustBox(rhs)) => lhs == rhs,
@@ -83,7 +83,7 @@
impl Eq for Lifetimes {}
impl PartialEq for Lifetimes {
- fn eq(&self, other: &Lifetimes) -> bool {
+ fn eq(&self, other: &Self) -> bool {
let Lifetimes {
lt_token: _,
lifetimes,
@@ -115,7 +115,7 @@
impl Eq for Ty1 {}
impl PartialEq for Ty1 {
- fn eq(&self, other: &Ty1) -> bool {
+ fn eq(&self, other: &Self) -> bool {
let Ty1 {
name,
langle: _,
@@ -148,7 +148,7 @@
impl Eq for Ref {}
impl PartialEq for Ref {
- fn eq(&self, other: &Ref) -> bool {
+ fn eq(&self, other: &Self) -> bool {
let Ref {
pinned,
ampersand: _,
@@ -192,7 +192,7 @@
impl Eq for SliceRef {}
impl PartialEq for SliceRef {
- fn eq(&self, other: &SliceRef) -> bool {
+ fn eq(&self, other: &Self) -> bool {
let SliceRef {
ampersand: _,
lifetime,
@@ -232,7 +232,7 @@
impl Eq for Array {}
impl PartialEq for Array {
- fn eq(&self, other: &Array) -> bool {
+ fn eq(&self, other: &Self) -> bool {
let Array {
bracket: _,
inner,
@@ -268,7 +268,7 @@
impl Eq for Signature {}
impl PartialEq for Signature {
- fn eq(&self, other: &Signature) -> bool {
+ fn eq(&self, other: &Self) -> bool {
let Signature {
unsafety,
fn_token: _,
@@ -349,7 +349,7 @@
impl Eq for Receiver {}
impl PartialEq for Receiver {
- fn eq(&self, other: &Receiver) -> bool {
+ fn eq(&self, other: &Self) -> bool {
let Receiver {
pinned,
ampersand: _,