viirya commented on code in PR #2442:
URL: https://github.com/apache/arrow-rs/pull/2442#discussion_r948200688
##########
arrow/src/array/array_decimal.rs:
##########
@@ -475,8 +473,8 @@ impl<Ptr: Into<Decimal256>> FromIterator<Option<Ptr>> for
Decimal256Array {
}
}
-impl<Ptr: Borrow<Option<i128>>> FromIterator<Ptr> for Decimal128Array {
- fn from_iter<I: IntoIterator<Item = Ptr>>(iter: I) -> Self {
+impl<Ptr: Into<i128>> FromIterator<Option<Ptr>> for Decimal128Array {
Review Comment:
I think it is okay. We could add some adapter for `FromIterator` for decimal
arrays. I will do it in another PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]