Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Commit

Permalink
Inline condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Dandandan committed Oct 19, 2021
1 parent 04c2854 commit 04af566
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/array/specification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ pub fn check_offsets_minimal<O: Offset>(offsets: &[O], values_len: usize) -> usi
pub fn check_offsets_and_utf8<O: Offset>(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| {
Expand Down

0 comments on commit 04af566

Please sign in to comment.