mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-13 14:51:01 +00:00
Improve build time
This commit is contained in:
+4
-3
@@ -464,9 +464,10 @@ macro_rules! array_impls {
|
|||||||
where V: SeqVisitor,
|
where V: SeqVisitor,
|
||||||
{
|
{
|
||||||
$(
|
$(
|
||||||
let $name = try!(visitor.visit().and_then(
|
let $name = match try!(visitor.visit()) {
|
||||||
|value| value.ok_or(Error::end_of_stream_error()))
|
Some(val) => val,
|
||||||
);
|
None => { return Err(Error::end_of_stream_error()); }
|
||||||
|
};
|
||||||
)+;
|
)+;
|
||||||
|
|
||||||
try!(visitor.end());
|
try!(visitor.end());
|
||||||
|
|||||||
Reference in New Issue
Block a user