From 30a143df4c45bfecc04397810c232112edf5c803 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Tue, 18 Apr 2023 21:59:42 +0000 Subject: [PATCH] fix signature of AVX stubs --- src/simd/avx2.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/simd/avx2.rs b/src/simd/avx2.rs index 4ef10c8..336cb30 100644 --- a/src/simd/avx2.rs +++ b/src/simd/avx2.rs @@ -1,7 +1,7 @@ use crate::iter::Bytes; #[cfg(target_arch = "x86")] -pub unsafe fn match_uri_vectored(_: &[u8]) -> usize { +pub unsafe fn match_uri_vectored(_: &mut Bytes) { unreachable!("AVX2 detection should be disabled for x86"); } @@ -64,7 +64,7 @@ unsafe fn match_url_char_32_avx(buf: &[u8]) -> usize { } #[cfg(target_arch = "x86")] -pub unsafe fn match_header_value_vectored(_: &[u8]) -> usize { +pub unsafe fn match_header_value_vectored(_: &mut Bytes) { unreachable!("AVX2 detection should be disabled for x86"); }