File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,14 +8,17 @@ fn json_serializer() {
88 // Create goldenfile mint.
99 let mut mint = goldenfile:: Mint :: new ( "." ) ;
1010
11- for entry in globwalk:: glob ( "src/tests/testdata_json/*.in" ) . unwrap ( ) . flatten ( ) {
11+ for entry in
12+ globwalk:: glob ( "src/tests/testdata_json/*.in" ) . unwrap ( ) . flatten ( )
13+ {
1214 // Path to the .in file.
1315 let in_path = entry. into_path ( ) ;
1416 // Path to the .out file.
1517 let out_path = in_path. with_extension ( "out" ) ;
1618
1719 let input = fs:: read_to_string ( in_path) . expect ( "Unable to read" ) ;
18- let test_pb = parse_from_str :: < crate :: test_json:: Message > ( & input) . unwrap ( ) ;
20+ let test_pb =
21+ parse_from_str :: < crate :: test_json:: Message > ( & input) . unwrap ( ) ;
1922
2023 let output_file = mint. new_goldenfile ( out_path) . unwrap ( ) ;
2124 let mut serializer = Serializer :: new ( output_file) ;
Original file line number Diff line number Diff line change @@ -11,14 +11,17 @@ fn yaml_serializer() {
1111 // Create goldenfile mint.
1212 let mut mint = goldenfile:: Mint :: new ( "." ) ;
1313
14- for entry in globwalk:: glob ( "src/tests/testdata_yaml/*.in" ) . unwrap ( ) . flatten ( ) {
14+ for entry in
15+ globwalk:: glob ( "src/tests/testdata_yaml/*.in" ) . unwrap ( ) . flatten ( )
16+ {
1517 // Path to the .in file.
1618 let in_path = entry. into_path ( ) ;
1719 // Path to the .out file.
1820 let out_path = in_path. with_extension ( "out" ) ;
1921
2022 let input = fs:: read_to_string ( in_path) . expect ( "Unable to read" ) ;
21- let test_pb = parse_from_str :: < crate :: test_yaml:: Message > ( & input) . unwrap ( ) ;
23+ let test_pb =
24+ parse_from_str :: < crate :: test_yaml:: Message > ( & input) . unwrap ( ) ;
2225
2326 let output_file = mint. new_goldenfile ( out_path) . unwrap ( ) ;
2427 let mut serializer = Serializer :: new ( output_file) ;
You can’t perform that action at this time.
0 commit comments