From d5daedce229c1c0e362c3647439ce0711c49db67 Mon Sep 17 00:00:00 2001 From: Onur Satici Date: Sun, 24 Nov 2024 10:25:10 +0000 Subject: [PATCH] more clippy --- arrow-select/src/interleave.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arrow-select/src/interleave.rs b/arrow-select/src/interleave.rs index ed7204e00d4e..6b347ff44c57 100644 --- a/arrow-select/src/interleave.rs +++ b/arrow-select/src/interleave.rs @@ -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" @@ -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