Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Aug 20, 2023
1 parent 3d7d9ac commit 9e46a95
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/array/binary/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,10 @@ impl<O: Offset> MutableBinaryArray<O> {
{
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(())
})
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/array/binary/mutable_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,10 @@ impl<O: Offset> MutableBinaryValuesArray<O> {
{
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(())
})
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/array/utf8/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,10 @@ impl<O: Offset> MutableUtf8Array<O> {
{
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(())
})
}
}

Expand Down
5 changes: 4 additions & 1 deletion src/array/utf8/mutable_values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,10 @@ impl<O: Offset> MutableUtf8ValuesArray<O> {
{
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(())
})
}
}

Expand Down

0 comments on commit 9e46a95

Please sign in to comment.