Skip to content

Commit 878f5b0

Browse files
committed
Fix Decodable impl for Arc
1 parent 9cb18a9 commit 878f5b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libserialize/serialize.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ impl<T:Encodable> Encodable for Arc<T> {
760760
}
761761
}
762762

763-
impl<T:Decodable+Send+Sync> Decodable for Arc<T> {
763+
impl<T:Decodable> Decodable for Arc<T> {
764764
fn decode<D: Decoder>(d: &mut D) -> Result<Arc<T>, D::Error> {
765765
Ok(Arc::new(Decodable::decode(d)?))
766766
}

0 commit comments

Comments
 (0)