@@ -7,15 +7,15 @@ use hamcrest::assert_that;
77#[ test]
88fn net_retry_loads_from_config ( ) {
99 let p = project ( "foo" )
10- . file ( "Cargo.toml" , & format ! ( r#"
10+ . file ( "Cargo.toml" , r#"
1111 [project]
1212 name = "foo"
1313 version = "0.0.1"
1414 authors = []
1515
1616 [dependencies.bar]
1717 git = "https://127.0.0.1:11/foo/bar"
18- "# ) )
18+ "# )
1919 . file ( "src/main.rs" , "" ) . file ( ".cargo/config" , r#"
2020 [net]
2121 retry=1
@@ -25,22 +25,22 @@ fn net_retry_loads_from_config() {
2525
2626 assert_that ( p. cargo_process ( "build" ) . arg ( "-v" ) ,
2727 execs ( ) . with_status ( 101 )
28- . with_stderr_contains ( & format ! ( "[WARNING] spurious network error \
29- (1 tries remaining): [2/-1] [..]") ) ) ;
28+ . with_stderr_contains ( "[WARNING] spurious network error \
29+ (1 tries remaining): [2/-1] [..]") ) ;
3030}
3131
3232#[ test]
3333fn net_retry_git_outputs_warning ( ) {
3434 let p = project ( "foo" )
35- . file ( "Cargo.toml" , & format ! ( r#"
35+ . file ( "Cargo.toml" , r#"
3636 [project]
3737 name = "foo"
3838 version = "0.0.1"
3939 authors = []
4040
4141 [dependencies.bar]
4242 git = "https://127.0.0.1:11/foo/bar"
43- "# ) )
43+ "# )
4444 . file ( ".cargo/config" , r#"
4545 [http]
4646 timeout=1
@@ -49,8 +49,8 @@ fn net_retry_git_outputs_warning() {
4949
5050 assert_that ( p. cargo_process ( "build" ) . arg ( "-v" ) . arg ( "-j" ) . arg ( "1" ) ,
5151 execs ( ) . with_status ( 101 )
52- . with_stderr_contains ( & format ! ( "[WARNING] spurious network error \
53- (2 tries remaining): [2/-1] [..]") )
54- . with_stderr_contains ( & format ! ( "\
55- [WARNING] spurious network error (1 tries remaining): [2/-1] [..]") ) ) ;
52+ . with_stderr_contains ( "[WARNING] spurious network error \
53+ (2 tries remaining): [2/-1] [..]")
54+ . with_stderr_contains ( "\
55+ [WARNING] spurious network error (1 tries remaining): [2/-1] [..]") ) ;
5656}
0 commit comments