parent
a4928a47a8
commit
a0295b3308
|
@ -829,7 +829,7 @@ impl<'de> de::VariantAccess<'de> for TableEnumDeserializer<'de> {
|
||||||
})
|
})
|
||||||
// Fold all values into a `Vec`, or return the first error.
|
// Fold all values into a `Vec`, or return the first error.
|
||||||
.fold(Ok(Vec::with_capacity(len)), |result, value_result| {
|
.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) => {
|
Ok(value) => {
|
||||||
tuple_values.push(value);
|
tuple_values.push(value);
|
||||||
Ok(tuple_values)
|
Ok(tuple_values)
|
||||||
|
|
Loading…
Reference in a new issue