alamb commented on code in PR #9274:
URL: https://github.com/apache/arrow-rs/pull/9274#discussion_r2747355165
##########
arrow-cast/src/cast/list.rs:
##########
@@ -82,14 +82,15 @@ where
OffsetSize: OffsetSizeTrait,
{
let array = array.as_fixed_size_list();
- if to.data_type() != &array.value_type() {
+ let (inner_field, size) = if let DataType::FixedSizeList(inner_field,
size) = array.data_type()
+ {
+ (inner_field, size)
+ } else {
+ unreachable!()
+ };
Review Comment:
Minor comment is you can make this more concise I think like
```rust
let DataType::FixedSizeList(inner_field, size) = array.data_type() else {
unreachable!()
};
```
--
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]