We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c825472 commit 29884e6Copy full SHA for 29884e6
src/serialize/writer/simd.rs
@@ -95,7 +95,8 @@ macro_rules! impl_format_simd {
95
}
96
97
while nb > 0 {
98
- let v = StrVector::from_slice(core::slice::from_raw_parts(sptr, STRIDE));
+ let mut v = StrVector::default();
99
+ v.as_mut_array()[..nb].copy_from_slice(core::slice::from_raw_parts(sptr, nb));
100
v.copy_to_slice(core::slice::from_raw_parts_mut(dptr, STRIDE));
101
let mask = (v.simd_eq(blash) | v.simd_eq(quote) | v.simd_lt(x20)).to_bitmask()
102
as u32
0 commit comments