Fix Decodable impl for Arc

This commit is contained in:
John Kåre Alsaker 2018-02-27 16:49:34 +01:00
parent 9cb18a92ad
commit 878f5b0514

View File

@ -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)?))
}