mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 02:33:55 +00:00
Fix Decodable impl for Arc
This commit is contained in:
parent
9cb18a92ad
commit
878f5b0514
@ -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)?))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user