From 15794a5ed696d2e8f2a4289b8f22b451ada4cac8 Mon Sep 17 00:00:00 2001 From: Thomas Bahn Date: Sat, 16 May 2015 14:36:28 +0200 Subject: [PATCH] Improve build time --- src/de/impls.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/de/impls.rs b/src/de/impls.rs index a7bfb8e5..bec9c610 100644 --- a/src/de/impls.rs +++ b/src/de/impls.rs @@ -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());