Skip to content

Commit

Permalink
more clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
onursatici committed Nov 24, 2024
1 parent 8b11191 commit d5daedc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions arrow-select/src/interleave.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,10 +502,10 @@ mod tests {
#[test]
fn test_interleave_views() {
let values = StringArray::from_iter_values(["hello", "world", "foo", "bar", "baz"]);
let view_a = StringViewArray::try_from(&values).unwrap();
let view_a = StringViewArray::from(&values);

let values = StringArray::from_iter_values(["test", "data", "more", "views", "here"]);
let view_b = StringViewArray::try_from(&values).unwrap();
let view_b = StringViewArray::from(&values);

let indices = &[
(0, 2), // "foo"
Expand Down Expand Up @@ -548,10 +548,10 @@ mod tests {
#[test]
fn test_interleave_views_with_nulls() {
let values = StringArray::from_iter([Some("hello"), None, Some("foo"), Some("bar"), None]);
let view_a = StringViewArray::try_from(&values).unwrap();
let view_a = StringViewArray::from(&values);

let values = StringArray::from_iter([Some("test"), Some("data"), None, None, Some("here")]);
let view_b = StringViewArray::try_from(&values).unwrap();
let view_b = StringViewArray::from(&values);

let indices = &[
(0, 1), // null
Expand Down

0 comments on commit d5daedc

Please sign in to comment.