Skip to content

Commit b3accb2

Browse files
committed
Fix unused const on aarch64
1 parent 31fa126 commit b3accb2

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/simd/mod.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,15 @@ pub const AVX_2: usize = 2;
6868
),
6969
))]
7070
pub const AVX_2_AND_SSE_42: usize = 3;
71-
#[cfg(httparse_simd)]
72-
const NONE: usize = usize::MAX;
71+
72+
#[cfg(all(
73+
httparse_simd,
74+
any(
75+
target_arch = "x86",
76+
target_arch = "x86_64",
77+
),
78+
))]
79+
const NONE: usize = std::usize::MAX;
7380
#[cfg(all(
7481
httparse_simd,
7582
not(any(

0 commit comments

Comments
 (0)