File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -66,21 +66,21 @@ struct Solution {
6666macro_rules! run {
6767 ( $year: tt $( $day: tt) ,* ) => {
6868 fn $year( ) -> Vec <Solution > {
69- vec![ $( {
70- let year = stringify! ( $year ) . unsigned ( ) ;
71- let day = stringify!( $day ) . unsigned( ) ;
72- let wrapper = |data : & str | {
73- use aoc :: $year :: $day :: * ;
74-
75- let input = parse ( & data ) ;
76- let part1 = part1 ( & input ) ;
77- let part2 = part2 ( & input) ;
78-
79- ( part1 . to_string ( ) , part2 . to_string ( ) )
80- } ;
81-
82- Solution { year , day , wrapper }
83- } , ) * ]
69+ vec![ $(
70+ Solution {
71+ year : stringify!( $year ) . unsigned( ) ,
72+ day : stringify! ( $day ) . unsigned ( ) ,
73+ wrapper : |data : & str | {
74+ use aoc :: $year :: $day :: * ;
75+
76+ let input = parse ( & data ) ;
77+ let part1 = part1 ( & input) ;
78+ let part2 = part2 ( & input ) ;
79+
80+ ( part1 . to_string ( ) , part2 . to_string ( ) )
81+ }
82+ }
83+ , ) * ]
8484 }
8585 }
8686}
You can’t perform that action at this time.
0 commit comments