Skip to content

Commit

Permalink
fix no_std
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronO committed Apr 25, 2023
1 parent 94e5f22 commit df301b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/simd/swar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use crate::{is_header_name_token, is_header_value_token, is_uri_token, Bytes};

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

#[inline]
Expand Down

0 comments on commit df301b6

Please sign in to comment.