File tree 3 files changed +13
-5
lines changed
crates/cargo-test-support/src
3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ rustup does not appear to be installed. Make sure that the appropriate
177
177
} ,
178
178
}
179
179
180
- panic ! ( message) ;
180
+ panic ! ( "{}" , message) ;
181
181
}
182
182
183
183
/// The alternate target-triple to build with.
Original file line number Diff line number Diff line change @@ -365,5 +365,5 @@ fn closed_output_ok() {
365
365
. unwrap ( ) ;
366
366
let status = child. wait ( ) . unwrap ( ) ;
367
367
assert ! ( status. success( ) ) ;
368
- assert ! ( s. is_empty( ) , s) ;
368
+ assert ! ( s. is_empty( ) , "{}" , s) ;
369
369
}
Original file line number Diff line number Diff line change @@ -370,7 +370,11 @@ fn finds_git_author() {
370
370
371
371
let toml = paths:: root ( ) . join ( "foo/Cargo.toml" ) ;
372
372
let contents = fs:: read_to_string ( & toml) . unwrap ( ) ;
373
- assert ! ( contents. contains( r#"authors = ["foo <gitfoo>"]"# ) , contents) ;
373
+ assert ! (
374
+ contents. contains( r#"authors = ["foo <gitfoo>"]"# ) ,
375
+ "{}" ,
376
+ contents
377
+ ) ;
374
378
}
375
379
376
380
#[ cargo_test]
@@ -411,7 +415,11 @@ fn finds_git_author_in_included_config() {
411
415
cargo_process ( "new foo/bar" ) . run ( ) ;
412
416
let toml = paths:: root ( ) . join ( "foo/bar/Cargo.toml" ) ;
413
417
let contents = fs:: read_to_string ( & toml) . unwrap ( ) ;
414
- assert ! ( contents. contains( r#"authors = ["foo <bar>"]"# ) , contents, ) ;
418
+ assert ! (
419
+ contents. contains( r#"authors = ["foo <bar>"]"# ) ,
420
+ "{}" ,
421
+ contents
422
+ ) ;
415
423
}
416
424
417
425
#[ cargo_test]
@@ -632,7 +640,7 @@ fn new_with_blank_email() {
632
640
. run ( ) ;
633
641
634
642
let contents = fs:: read_to_string ( paths:: root ( ) . join ( "foo/Cargo.toml" ) ) . unwrap ( ) ;
635
- assert ! ( contents. contains( r#"authors = ["Sen"]"# ) , contents) ;
643
+ assert ! ( contents. contains( r#"authors = ["Sen"]"# ) , "{}" , contents) ;
636
644
}
637
645
638
646
#[ cargo_test]
You can’t perform that action at this time.
0 commit comments