Skip to content

Commit 0602f21

Browse files
committed
don't always check the remainder
1 parent b6ad12b commit 0602f21

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

portable/src/implementation/simd.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,7 @@ where
740740
algorithm.check_utf8(&simd_input);
741741
}
742742
let rem = chunks.remainder();
743-
if !rem.is_ascii() {
744-
// FIXME: simd???
743+
if !rem.is_empty() {
745744
let simd_input = SimdInput::<N, O>::new_partial(rem);
746745
algorithm.check_utf8(&simd_input);
747746
}

0 commit comments

Comments
 (0)