Skip to content

Commit

Permalink
Merge pull request #81 from Johan-Mi/master
Browse files Browse the repository at this point in the history
Remove unused lifetimes
  • Loading branch information
cessen authored Apr 9, 2023
2 parents fcdad3a + 3485d8c commit f129237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rope.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2029,14 +2029,14 @@ impl std::cmp::PartialEq<Rope> for str {
}
}

impl<'a> std::cmp::PartialEq<String> for Rope {
impl std::cmp::PartialEq<String> for Rope {
#[inline]
fn eq(&self, other: &String) -> bool {
self.slice(..) == other.as_str()
}
}

impl<'a> std::cmp::PartialEq<Rope> for String {
impl std::cmp::PartialEq<Rope> for String {
#[inline]
fn eq(&self, other: &Rope) -> bool {
self.as_str() == other.slice(..)
Expand Down

0 comments on commit f129237

Please sign in to comment.