about summary refs log tree commit diff
path: root/src/libserialize/collection_impls.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libserialize/collection_impls.rs')
-rw-r--r--src/libserialize/collection_impls.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libserialize/collection_impls.rs b/src/libserialize/collection_impls.rs
index 8631fef5168..7ca0f372891 100644
--- a/src/libserialize/collection_impls.rs
+++ b/src/libserialize/collection_impls.rs
@@ -76,8 +76,8 @@ impl<E, D:Decoder<E>,T:Decodable<D, E>> Decodable<D, E> for RingBuf<T> {
 impl<
     E,
     S: Encoder<E>,
-    K: Encodable<S, E> + Eq + TotalOrd,
-    V: Encodable<S, E> + Eq
+    K: Encodable<S, E> + PartialEq + TotalOrd,
+    V: Encodable<S, E> + PartialEq
 > Encodable<S, E> for TreeMap<K, V> {
     fn encode(&self, e: &mut S) -> Result<(), E> {
         e.emit_map(self.len(), |e| {
@@ -95,8 +95,8 @@ impl<
 impl<
     E,
     D: Decoder<E>,
-    K: Decodable<D, E> + Eq + TotalOrd,
-    V: Decodable<D, E> + Eq
+    K: Decodable<D, E> + PartialEq + TotalOrd,
+    V: Decodable<D, E> + PartialEq
 > Decodable<D, E> for TreeMap<K, V> {
     fn decode(d: &mut D) -> Result<TreeMap<K, V>, E> {
         d.read_map(|d, len| {
@@ -114,7 +114,7 @@ impl<
 impl<
     E,
     S: Encoder<E>,
-    T: Encodable<S, E> + Eq + TotalOrd
+    T: Encodable<S, E> + PartialEq + TotalOrd
 > Encodable<S, E> for TreeSet<T> {
     fn encode(&self, s: &mut S) -> Result<(), E> {
         s.emit_seq(self.len(), |s| {
@@ -131,7 +131,7 @@ impl<
 impl<
     E,
     D: Decoder<E>,
-    T: Decodable<D, E> + Eq + TotalOrd
+    T: Decodable<D, E> + PartialEq + TotalOrd
 > Decodable<D, E> for TreeSet<T> {
     fn decode(d: &mut D) -> Result<TreeSet<T>, E> {
         d.read_seq(|d, len| {