Maintain compatibility with Rust 1.15

Issue #225
This commit is contained in:
Azriel Hoh 2018-10-22 10:33:20 +13:00
parent a4928a47a8
commit a0295b3308

View file

@ -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)