Skip to content

Commit 01373c5

Browse files
committed
fix check remainder only if present
1 parent 0602f21 commit 01373c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

portable/src/implementation/simd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ where
801801
break;
802802
}
803803
let rem = chunks.remainder();
804-
if !rem.is_ascii() {
804+
if !rem.is_empty() {
805805
// FIXME: simd???
806806
let simd_input = SimdInput::<N, O>::new_partial(rem);
807807
algorithm.check_utf8(&simd_input);

0 commit comments

Comments
 (0)