#[stable(feature = "rust1", since = "1.0.0")]
impl<'a, 'b, A: $Bound, B> PartialEq<$Rhs> for $Lhs where A: PartialEq<B> {
#[inline]
- fn eq(&self, other: &$Rhs) -> bool { &self[..] == &other[..] }
+ fn eq(&self, other: &$Rhs) -> bool { self[..] == other[..] }
#[inline]
- fn ne(&self, other: &$Rhs) -> bool { &self[..] != &other[..] }
+ fn ne(&self, other: &$Rhs) -> bool { self[..] != other[..] }
}
}
}
#[stable(feature = "rust1", since = "1.0.0")]
impl<'a, 'b, A: $Bound, B> PartialEq<$Lhs> for $Rhs where B: PartialEq<A> {
#[inline]
- fn eq(&self, other: &$Lhs) -> bool { &self[..] == &other[..] }
+ fn eq(&self, other: &$Lhs) -> bool { self[..] == other[..] }
#[inline]
- fn ne(&self, other: &$Lhs) -> bool { &self[..] != &other[..] }
+ fn ne(&self, other: &$Lhs) -> bool { self[..] != other[..] }
}
}
}