From 4851f34e8c06820d582792e612bd66bd802c9321 Mon Sep 17 00:00:00 2001 From: Ritchie Vink Date: Thu, 4 Nov 2021 09:11:31 +0100 Subject: [PATCH] Update src/compute/substring.rs Co-authored-by: Jorge Leitao --- src/compute/substring.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compute/substring.rs b/src/compute/substring.rs index 3039f1521d6..56ad9239775 100644 --- a/src/compute/substring.rs +++ b/src/compute/substring.rs @@ -64,7 +64,7 @@ fn utf8_substring(array: &Utf8Array, start: O, length: &Option) }); let new = Utf8Array::::from_trusted_len_values_iter(iter); - new.with_validity(array.validity().map(|x| x.clone())) + new.with_validity(array.validity().cloned()) } fn binary_substring(