diff --git a/Cargo.toml b/Cargo.toml index 401ecba..9de306c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,5 +33,5 @@ c-abi = ["abi_stable"] # use runtime detection of the CPU features where possible instead of enforcing an instruction set runtime-detection = [] -# portable simd support (as of rust 1.73 nightly only) +# portable simd support (as of rust 1.80 nightly only) portable = [] diff --git a/src/generator.rs b/src/generator.rs index dcc6fa7..cb75724 100644 --- a/src/generator.rs +++ b/src/generator.rs @@ -468,7 +468,8 @@ unsafe fn write_str_simd_portable(writer: &mut W, string: &mut &[u8]) -> io:: where W: Write, { - use std::simd::{u8x32, SimdPartialEq, ToBitMask}; + use std::simd::cmp::SimdPartialEq; + use std::simd::u8x32; let mut idx = 0; let zero = u8x32::splat(0);