Skip to content

Commit 5234063

Browse files
committed
Implement PartialEq<str> for String and Cow
1 parent 63c01ce commit 5234063

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcollections/string.rs

+2
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,9 @@ macro_rules! impl_eq {
822822
}
823823
}
824824

825+
impl_eq! { String, str }
825826
impl_eq! { String, &'a str }
827+
impl_eq! { Cow<'a, str>, str }
826828
impl_eq! { Cow<'a, str>, String }
827829

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

0 commit comments

Comments
 (0)