about summary refs log tree commit diff
path: root/src/libcollections
diff options
context:
space:
mode:
authorGleb Kozyrev <gleb@gkoz.com>2015-04-02 18:51:14 +0300
committerGleb Kozyrev <gleb@gkoz.com>2015-04-02 18:53:04 +0300
commit52340630a6f76eae4e9b605d17c650d57114951e (patch)
treeaabd78f9dee6c0691cecf156d75af9a36c041518 /src/libcollections
parent63c01cea2d1fa1125bbe2c9bb54d89e0dbb0c196 (diff)
downloadrust-52340630a6f76eae4e9b605d17c650d57114951e.tar.gz
rust-52340630a6f76eae4e9b605d17c650d57114951e.zip
Implement PartialEq<str> for String and Cow
Diffstat (limited to 'src/libcollections')
-rw-r--r--src/libcollections/string.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs
index bce314b6e04..8da8cad98a7 100644
--- a/src/libcollections/string.rs
+++ b/src/libcollections/string.rs
@@ -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")]