about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-02-27 16:49:34 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-03-02 10:45:32 +0100
commit878f5b05147480182ea4d8a855acc55bfeb16c22 (patch)
tree023e0781e094fae36aab60681822111f4cb3a2ff
parent9cb18a92ad87852c4c5d6726b8fbe8c38deda4ba (diff)
downloadrust-878f5b05147480182ea4d8a855acc55bfeb16c22.tar.gz
rust-878f5b05147480182ea4d8a855acc55bfeb16c22.zip
Fix Decodable impl for Arc
-rw-r--r--src/libserialize/serialize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserialize/serialize.rs b/src/libserialize/serialize.rs
index 854ca4eb3b0..7341dec5156 100644
--- a/src/libserialize/serialize.rs
+++ b/src/libserialize/serialize.rs
@@ -760,7 +760,7 @@ impl<T:Encodable> Encodable for Arc<T> {
     }
 }
 
-impl<T:Decodable+Send+Sync> Decodable for Arc<T> {
+impl<T:Decodable> Decodable for Arc<T> {
     fn decode<D: Decoder>(d: &mut D) -> Result<Arc<T>, D::Error> {
         Ok(Arc::new(Decodable::decode(d)?))
     }