Skip to content

Commit

Permalink
Implement PartialEq<str> for String and Cow
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoz committed Apr 2, 2015
1 parent 63c01ce commit 5234063
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcollections/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,9 @@ macro_rules! impl_eq {
}
}

impl_eq! { String, str }
impl_eq! { String, &'a str }
impl_eq! { Cow<'a, str>, str }
impl_eq! { Cow<'a, str>, String }

#[stable(feature = "rust1", since = "1.0.0")]
Expand Down

0 comments on commit 5234063

Please sign in to comment.