fix conditional compilation

This commit is contained in:
Folkert 2022-05-18 01:36:56 +02:00
parent 381f188409
commit 970b2c94f2
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -254,8 +254,8 @@ fn fast_eat_spaces(state: &State) -> FastSpaceState {
index += 1;
// try to use SIMD instructions explicitly
if cfg!(target_arch = "x86_64") {
#[cfg(target_arch = "x86_64")]
#[cfg(target_arch = "x86_64")]
{
use std::arch::x86_64::*;
// a bytestring with the three characters we're looking for (the rest is ignored)
@ -285,7 +285,10 @@ fn fast_eat_spaces(state: &State) -> FastSpaceState {
continue 'outer;
}
}
} else {
}
#[cfg(not(target_arch = "x86_64"))]
{
while index < length {
match bytes[index] {
b'\n' | b'\t' | b'\r' => {