@@ -167,7 +167,7 @@ pub fn read_http_version<R: Reader, F: FnMut(u8) -> bool>
167
167
168
168
// I couldn't think what to call it. Ah well. It's just trivial syntax sugar, anyway.
169
169
macro_rules! test_reads {
170
- ( $func: ident $( $value: expr => $expected: expr) ,* ) => { {
170
+ ( $func: ident, $( $value: expr => $expected: expr) ,* ) => { {
171
171
$(
172
172
assert_eq!(
173
173
concat_idents!( read_, $func) ( & mut MemReader :: new( $value. bytes( ) . collect:: <Vec <_>>( ) ) ,
@@ -179,7 +179,7 @@ macro_rules! test_reads {
179
179
180
180
#[ test]
181
181
fn test_read_http_version ( ) {
182
- test_reads ! ( http_version
182
+ test_reads ! ( http_version,
183
183
"HTTP/25.17\0 " => Some ( ( 25 , 17 ) ) ,
184
184
"http/1.0\0 " => Some ( ( 1 , 0 ) ) ,
185
185
"http 1.0\0 " => None ,
@@ -190,7 +190,7 @@ fn test_read_http_version() {
190
190
191
191
#[ test]
192
192
fn test_read_decimal ( ) {
193
- test_reads ! ( decimal
193
+ test_reads ! ( decimal,
194
194
"0\0 " => Some ( 0 u) ,
195
195
"0\0 " => Some ( 0u8 ) ,
196
196
"0\0 " => Some ( 0u64 ) ,
@@ -217,7 +217,7 @@ fn test_read_decimal() {
217
217
218
218
#[ test]
219
219
fn test_read_hexadecimal ( ) {
220
- test_reads ! ( hexadecimal
220
+ test_reads ! ( hexadecimal,
221
221
"0\0 " => Some ( 0 u) ,
222
222
"0\0 " => Some ( 0u8 ) ,
223
223
"0\0 " => Some ( 0u64 ) ,
0 commit comments