@@ -267,22 +267,17 @@ mod musl_reference_tests {
267267 . status ( )
268268 . unwrap ( ) ;
269269 assert ! ( status. success( ) ) ;
270- let output = Command :: new ( "./gen" )
271- . current_dir ( & dst)
272- . output ( )
273- . unwrap ( ) ;
270+ let output = Command :: new ( "./gen" ) . current_dir ( & dst) . output ( ) . unwrap ( ) ;
274271 assert ! ( output. status. success( ) ) ;
275272 assert ! ( output. stderr. is_empty( ) ) ;
276273
277274 // Map all the output bytes back to an `i64` and then shove it all into
278275 // the expected results.
279- let mut results =
280- output. stdout . chunks_exact ( 8 )
281- . map ( |buf| {
282- let mut exact = [ 0 ; 8 ] ;
283- exact. copy_from_slice ( buf) ;
284- i64:: from_le_bytes ( exact)
285- } ) ;
276+ let mut results = output. stdout . chunks_exact ( 8 ) . map ( |buf| {
277+ let mut exact = [ 0 ; 8 ] ;
278+ exact. copy_from_slice ( buf) ;
279+ i64:: from_le_bytes ( exact)
280+ } ) ;
286281
287282 for test in functions. iter_mut ( ) . flat_map ( |f| f. tests . iter_mut ( ) ) {
288283 test. output = results. next ( ) . unwrap ( ) ;
@@ -301,7 +296,10 @@ mod musl_reference_tests {
301296 src. push_str ( "fn " ) ;
302297 src. push_str ( & function. name ) ;
303298 src. push_str ( "_matches_musl() {" ) ;
304- src. push_str ( & format ! ( "static TESTS: &[([i64; {}], i64)]" , function. args. len( ) ) ) ;
299+ src. push_str ( & format ! (
300+ "static TESTS: &[([i64; {}], i64)]" ,
301+ function. args. len( )
302+ ) ) ;
305303 src. push_str ( " = &[" ) ;
306304 for test in function. tests . iter ( ) {
307305 src. push_str ( "([" ) ;
@@ -336,9 +334,11 @@ mod musl_reference_tests {
336334 Ty :: Bool => unreachable ! ( ) ,
337335 } ) ;
338336
339- src. push_str ( r#"
337+ src. push_str (
338+ r#"
340339 panic!("INPUT: {:?} EXPECTED: {:?} ACTUAL {:?}", test, expected, output);
341- "# ) ;
340+ "# ,
341+ ) ;
342342 src. push_str ( "}" ) ;
343343
344344 src. push_str ( "}" ) ;
0 commit comments