From 52340630a6f76eae4e9b605d17c650d57114951e Mon Sep 17 00:00:00 2001 From: Gleb Kozyrev Date: Thu, 2 Apr 2015 18:51:14 +0300 Subject: [PATCH] Implement PartialEq for String and Cow --- src/libcollections/string.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index bce314b6e04a9..8da8cad98a705 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")]