diff --git a/src/rope.rs b/src/rope.rs index 7f993361..9bbfc7c5 100644 --- a/src/rope.rs +++ b/src/rope.rs @@ -2029,14 +2029,14 @@ impl std::cmp::PartialEq for str { } } -impl<'a> std::cmp::PartialEq for Rope { +impl std::cmp::PartialEq for Rope { #[inline] fn eq(&self, other: &String) -> bool { self.slice(..) == other.as_str() } } -impl<'a> std::cmp::PartialEq for String { +impl std::cmp::PartialEq for String { #[inline] fn eq(&self, other: &Rope) -> bool { self.as_str() == other.slice(..)