diff --git a/src/impls.rs b/src/impls.rs index fade074..f09bb9e 100644 --- a/src/impls.rs +++ b/src/impls.rs @@ -52,8 +52,8 @@ macro_rules! impl_partial_eq_cow { impl<'a> PartialEq<$lhs> for $rhs { #[inline] fn eq(&self, other: &$lhs) -> bool { - let this: &[u8] = (&**other).as_ref(); - PartialEq::eq(this, self.as_bytes()) + let this: &[u8] = (&**self).as_ref(); + PartialEq::eq(this, other.as_bytes()) } } };