Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Aug 9, 2024
1 parent 948cbb1 commit 5209176
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arrow-cast/src/cast/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ pub fn cast_with_options(
cast_with_options(array, f.data_type(), cast_options)
} else {
// create empty ArrayRef's for other fields
Ok(new_empty_array(&f.data_type()))
Ok(new_empty_array(f.data_type()))
}
})
.collect::<Result<Vec<_>, ArrowError>>()?;
Expand All @@ -1258,7 +1258,7 @@ pub fn cast_with_options(
cast_with_options(array, f.data_type(), cast_options)
} else {
// create empty ArrayRef's for other fields
Ok(new_null_array(&f.data_type(), array.len()))
Ok(new_null_array(f.data_type(), array.len()))
}
})
.collect::<Result<Vec<_>, ArrowError>>()?;
Expand Down Expand Up @@ -9644,7 +9644,6 @@ mod tests {
assert_eq!(as_int_vec::<Int32Type>(&as_union.value(1)), vec![Some(2)]);
assert_eq!(as_int_vec::<Int32Type>(&as_union.value(2)), vec![Some(3)]);


let strings = StringArray::from_iter_values(vec!["a", "b", "c"].into_iter());

let cast_array = cast(&strings, &dt).unwrap();
Expand Down

0 comments on commit 5209176

Please sign in to comment.