From 00ee52194039594e2e842c4448ad952cbd6103da Mon Sep 17 00:00:00 2001 From: Azriel Hoh Date: Mon, 22 Oct 2018 10:33:20 +1300 Subject: Maintain compatibility with Rust 1.15 Issue #225 --- src/de.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/de.rs b/src/de.rs index 7fd1387..da30699 100644 --- a/src/de.rs +++ b/src/de.rs @@ -829,7 +829,7 @@ impl<'de> de::VariantAccess<'de> for TableEnumDeserializer<'de> { }) // Fold all values into a `Vec`, or return the first error. .fold(Ok(Vec::with_capacity(len)), |result, value_result| { - result.and_then(|mut tuple_values| match value_result { + result.and_then(move |mut tuple_values| match value_result { Ok(value) => { tuple_values.push(value); Ok(tuple_values) -- cgit v1.2.3