File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ pub(crate) unsafe fn match_uri_vectored(bytes: &[u8]) -> usize {
26
26
27
27
#[ inline( always) ]
28
28
#[ allow( non_snake_case, overflowing_literals) ]
29
+ #[ allow( unused) ]
29
30
unsafe fn match_url_char_32_avx ( buf : & [ u8 ] ) -> usize {
30
31
debug_assert ! ( buf. len( ) >= 32 ) ;
31
32
@@ -91,6 +92,7 @@ pub(crate) unsafe fn match_header_value_vectored(bytes: &[u8]) -> usize {
91
92
92
93
#[ inline( always) ]
93
94
#[ allow( non_snake_case) ]
95
+ #[ allow( unused) ]
94
96
unsafe fn match_header_value_char_32_avx ( buf : & [ u8 ] ) -> usize {
95
97
debug_assert ! ( buf. len( ) >= 32 ) ;
96
98
Original file line number Diff line number Diff line change @@ -190,9 +190,13 @@ fn test_is_header_value_block() {
190
190
assert ! ( !is_header_value_block( [ b; BLOCK_SIZE ] ) , "b={}" , b) ;
191
191
}
192
192
193
- // A few sanity checks on non-uniform bytes for safe-measure
194
- assert ! ( !is_header_value_block( * b"foo.com\n " ) ) ;
195
- assert ! ( !is_header_value_block( * b"o.com\r \n U" ) ) ;
193
+
194
+ #[ cfg( target_pointer_width = "64" ) ]
195
+ {
196
+ // A few sanity checks on non-uniform bytes for safe-measure
197
+ assert ! ( !is_header_value_block( * b"foo.com\n " ) ) ;
198
+ assert ! ( !is_header_value_block( * b"o.com\r \n U" ) ) ;
199
+ }
196
200
}
197
201
198
202
#[ test]
You can’t perform that action at this time.
0 commit comments