Skip to content

Commit e10d41e

Browse files
committed
fix no_std
1 parent 6cac4bd commit e10d41e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/simd/swar.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use crate::{is_header_name_token, is_header_value_token, is_uri_token, Bytes};
44

55
// Adapt block-size to match native register size, i.e: 32bit => 4, 64bit => 8
6-
const BLOCK_SIZE: usize = std::mem::size_of::<usize>();
6+
const BLOCK_SIZE: usize = core::mem::size_of::<usize>();
77
type ByteBlock = [u8; BLOCK_SIZE];
88

99
#[inline]

0 commit comments

Comments
 (0)