mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
Remove box syntax from rustc_serialize
This commit is contained in:
parent
395e7dfc2a
commit
823e6f161a
@ -9,7 +9,6 @@ Core encoding and decoding interfaces.
|
||||
html_playground_url = "https://play.rust-lang.org/",
|
||||
test(attr(allow(unused_variables), deny(warnings)))
|
||||
)]
|
||||
#![feature(box_syntax)]
|
||||
#![feature(never_type)]
|
||||
#![feature(nll)]
|
||||
#![feature(associated_type_bounds)]
|
||||
|
@ -679,6 +679,6 @@ impl<S: Encoder, T: ?Sized + Encodable<S>> Encodable<S> for Box<T> {
|
||||
}
|
||||
impl<D: Decoder, T: Decodable<D>> Decodable<D> for Box<T> {
|
||||
fn decode(d: &mut D) -> Result<Box<T>, D::Error> {
|
||||
Ok(box Decodable::decode(d)?)
|
||||
Ok(Box::new(Decodable::decode(d)?))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user