@@ -9,7 +9,7 @@ type ByteBlock = [u8; BLOCK_SIZE];
99#[ inline]
1010pub fn match_uri_vectored ( bytes : & mut Bytes ) {
1111 loop {
12- if let Some ( bytes8) = bytes. peek_n :: < ByteBlock > ( BLOCK_SIZE ) {
12+ if let Some ( bytes8) = bytes. peek_n :: < BLOCK_SIZE > ( ) {
1313 let n = match_uri_char_8_swar ( bytes8) ;
1414 // SAFETY: using peek_n to retrieve the bytes ensures that there are at least n more bytes
1515 // in `bytes`, so calling `advance(n)` is safe.
@@ -37,7 +37,7 @@ pub fn match_uri_vectored(bytes: &mut Bytes) {
3737#[ inline]
3838pub fn match_header_value_vectored ( bytes : & mut Bytes ) {
3939 loop {
40- if let Some ( bytes8) = bytes. peek_n :: < ByteBlock > ( BLOCK_SIZE ) {
40+ if let Some ( bytes8) = bytes. peek_n :: < BLOCK_SIZE > ( ) {
4141 let n = match_header_value_char_8_swar ( bytes8) ;
4242 // SAFETY: using peek_n to retrieve the bytes ensures that there are at least n more bytes
4343 // in `bytes`, so calling `advance(n)` is safe.
@@ -64,7 +64,7 @@ pub fn match_header_value_vectored(bytes: &mut Bytes) {
6464
6565#[ inline]
6666pub fn match_header_name_vectored ( bytes : & mut Bytes ) {
67- while let Some ( block) = bytes. peek_n :: < ByteBlock > ( BLOCK_SIZE ) {
67+ while let Some ( block) = bytes. peek_n :: < BLOCK_SIZE > ( ) {
6868 let n = match_block ( is_header_name_token, block) ;
6969 // SAFETY: using peek_n to retrieve the bytes ensures that there are at least n more bytes
7070 // in `bytes`, so calling `advance(n)` is safe.
0 commit comments