From 37e5e6cb7d99c180b38d9a8d7756a7a9c85fcc16 Mon Sep 17 00:00:00 2001 From: Jordan Frazier Date: Wed, 12 Jul 2023 10:22:12 -0700 Subject: [PATCH] clippy --- crates/sparrow-instructions/src/evaluators/map/get.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/sparrow-instructions/src/evaluators/map/get.rs b/crates/sparrow-instructions/src/evaluators/map/get.rs index a8b363980..1bef1a41f 100644 --- a/crates/sparrow-instructions/src/evaluators/map/get.rs +++ b/crates/sparrow-instructions/src/evaluators/map/get.rs @@ -1,7 +1,6 @@ use std::marker::PhantomData; use std::sync::Arc; - use arrow::array::{Array, ArrayRef, PrimitiveArray, StringArray}; use arrow::datatypes::{ArrowPrimitiveType, DataType}; use itertools::Itertools; @@ -115,6 +114,7 @@ where }) .try_collect()?; + // SAFETY: `map` is a trusted length iterator unsafe { PrimitiveArray::from_trusted_len_iter(values.iter()) } };