Skip to content

Commit

Permalink
Fix Decodable impl for Arc
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoxc committed Mar 2, 2018
1 parent 9cb18a9 commit 878f5b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libserialize/serialize.rs
Expand Up @@ -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)?))
}
Expand Down

0 comments on commit 878f5b0

Please sign in to comment.