Improve build time

This commit is contained in:
Thomas Bahn 2015-05-16 14:36:28 +02:00
parent 62058962de
commit 15794a5ed6

View File

@ -464,9 +464,10 @@ macro_rules! array_impls {
where V: SeqVisitor,
{
$(
let $name = try!(visitor.visit().and_then(
|value| value.ok_or(Error::end_of_stream_error()))
);
let $name = match try!(visitor.visit()) {
Some(val) => val,
None => { return Err(Error::end_of_stream_error()); }
};
)+;
try!(visitor.end());