From 04af5668596d71f0d19e0fa67c8910af7501c152 Mon Sep 17 00:00:00 2001 From: "Heres, Daniel" Date: Tue, 19 Oct 2021 20:44:44 +0200 Subject: [PATCH] Inline condition --- src/array/specification.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/array/specification.rs b/src/array/specification.rs index 047ecf7f9e9..c644d0a5dea 100644 --- a/src/array/specification.rs +++ b/src/array/specification.rs @@ -77,9 +77,7 @@ pub fn check_offsets_minimal(offsets: &[O], values_len: usize) -> usi pub fn check_offsets_and_utf8(offsets: &[O], values: &[u8]) { const SIMD_CHUNK_SIZE: usize = 64; - let all_ascii = values.is_ascii(); - - if all_ascii { + if values.is_ascii() { return check_offsets(offsets, values.len()); } else { offsets.windows(2).for_each(|window| {