@@ -23,7 +23,7 @@ fn test_parse_image() {
2323 assert_eq ! ( img. alt, "Alt text" ) ;
2424 assert_eq ! ( img. url, "/path/to/image.png" ) ;
2525 }
26- _ => panic ! ( "expected image, got {:?}" , & p. children[ 0 ] ) ,
26+ _ => panic ! ( "expected image, got {:?}" , p. children[ 0 ] ) ,
2727 }
2828 }
2929 _ => panic ! ( "expected paragraph" ) ,
@@ -59,7 +59,7 @@ fn indented_heading_like_text_does_not_loop() {
5959 assert ! (
6060 matches!( & doc. children[ 0 ] , Node :: Paragraph ( _) ) ,
6161 "expected leading-indented `#` to parse as paragraph text, got {:?}" ,
62- & doc. children[ 0 ]
62+ doc. children[ 0 ]
6363 ) ;
6464}
6565
@@ -168,7 +168,7 @@ fn test_parse_table() {
168168 Node :: Table ( t) => {
169169 assert_eq ! ( t. children. len( ) , 2 ) ; // header + 1 body row
170170 }
171- _ => panic ! ( "expected table, got {:?}" , & doc. children[ 0 ] ) ,
171+ _ => panic ! ( "expected table, got {:?}" , doc. children[ 0 ] ) ,
172172 }
173173}
174174
@@ -184,7 +184,7 @@ fn test_parse_unordered_list() {
184184 assert ! ( !list. ordered) ;
185185 assert_eq ! ( list. children. len( ) , 3 ) ;
186186 }
187- _ => panic ! ( "expected list, got {:?}" , & doc. children[ 0 ] ) ,
187+ _ => panic ! ( "expected list, got {:?}" , doc. children[ 0 ] ) ,
188188 }
189189}
190190
@@ -200,7 +200,7 @@ fn test_parse_ordered_list() {
200200 assert ! ( list. ordered) ;
201201 assert_eq ! ( list. children. len( ) , 3 ) ;
202202 }
203- _ => panic ! ( "expected list, got {:?}" , & doc. children[ 0 ] ) ,
203+ _ => panic ! ( "expected list, got {:?}" , doc. children[ 0 ] ) ,
204204 }
205205}
206206
@@ -214,7 +214,7 @@ fn test_parse_block_quote() {
214214 assert_eq ! ( bq. children. len( ) , 1 ) ;
215215 assert ! ( matches!( & bq. children[ 0 ] , Node :: Paragraph ( _) ) ) ;
216216 }
217- _ => panic ! ( "expected block quote, got {:?}" , & doc. children[ 0 ] ) ,
217+ _ => panic ! ( "expected block quote, got {:?}" , doc. children[ 0 ] ) ,
218218 }
219219}
220220
@@ -227,7 +227,7 @@ fn test_parse_block_quote_multiline() {
227227 Node :: BlockQuote ( bq) => {
228228 assert_eq ! ( bq. children. len( ) , 1 ) ;
229229 }
230- _ => panic ! ( "expected block quote, got {:?}" , & doc. children[ 0 ] ) ,
230+ _ => panic ! ( "expected block quote, got {:?}" , doc. children[ 0 ] ) ,
231231 }
232232}
233233
@@ -241,6 +241,6 @@ fn test_parse_nested_block_quote() {
241241 assert_eq ! ( bq. children. len( ) , 1 ) ;
242242 assert ! ( matches!( & bq. children[ 0 ] , Node :: BlockQuote ( _) ) ) ;
243243 }
244- _ => panic ! ( "expected block quote, got {:?}" , & doc. children[ 0 ] ) ,
244+ _ => panic ! ( "expected block quote, got {:?}" , doc. children[ 0 ] ) ,
245245 }
246246}
0 commit comments