diff --git a/src/array/binary/mutable.rs b/src/array/binary/mutable.rs index db0312fb54..32a6f17acb 100644 --- a/src/array/binary/mutable.rs +++ b/src/array/binary/mutable.rs @@ -414,7 +414,10 @@ impl MutableBinaryArray { { let mut iter = iter.into_iter(); self.reserve(iter.size_hint().0, 0); - iter.try_for_each(|x| Ok(self.push(x?))) + iter.try_for_each(|x| { + self.push(x?); + Ok(()) + }) } } diff --git a/src/array/binary/mutable_values.rs b/src/array/binary/mutable_values.rs index 53b2d93a9a..3e14d9c578 100644 --- a/src/array/binary/mutable_values.rs +++ b/src/array/binary/mutable_values.rs @@ -324,7 +324,10 @@ impl MutableBinaryValuesArray { { let mut iter = iter.into_iter(); self.reserve(iter.size_hint().0, 0); - iter.try_for_each(|x| Ok(self.push(x?))) + iter.try_for_each(|x| { + self.push(x?); + Ok(()) + }) } } diff --git a/src/array/utf8/mutable.rs b/src/array/utf8/mutable.rs index 6f5b7973ed..108fe8e474 100644 --- a/src/array/utf8/mutable.rs +++ b/src/array/utf8/mutable.rs @@ -493,7 +493,10 @@ impl MutableUtf8Array { { let mut iter = iter.into_iter(); self.reserve(iter.size_hint().0, 0); - iter.try_for_each(|x| Ok(self.push(x?))) + iter.try_for_each(|x| { + self.push(x?); + Ok(()) + }) } } diff --git a/src/array/utf8/mutable_values.rs b/src/array/utf8/mutable_values.rs index c70c870388..dce8b09e4c 100644 --- a/src/array/utf8/mutable_values.rs +++ b/src/array/utf8/mutable_values.rs @@ -369,7 +369,10 @@ impl MutableUtf8ValuesArray { { let mut iter = iter.into_iter(); self.reserve(iter.size_hint().0, 0); - iter.try_for_each(|x| Ok(self.push(x?))) + iter.try_for_each(|x| { + self.push(x?); + Ok(()) + }) } }