@@ -7,15 +7,15 @@ use hamcrest::assert_that;
7
7
#[ test]
8
8
fn net_retry_loads_from_config ( ) {
9
9
let p = project ( "foo" )
10
- . file ( "Cargo.toml" , & format ! ( r#"
10
+ . file ( "Cargo.toml" , r#"
11
11
[project]
12
12
name = "foo"
13
13
version = "0.0.1"
14
14
authors = []
15
15
16
16
[dependencies.bar]
17
17
git = "https://127.0.0.1:11/foo/bar"
18
- "# ) )
18
+ "# )
19
19
. file ( "src/main.rs" , "" ) . file ( ".cargo/config" , r#"
20
20
[net]
21
21
retry=1
@@ -25,22 +25,22 @@ fn net_retry_loads_from_config() {
25
25
26
26
assert_that ( p. cargo_process ( "build" ) . arg ( "-v" ) ,
27
27
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] [..]") ) ;
30
30
}
31
31
32
32
#[ test]
33
33
fn net_retry_git_outputs_warning ( ) {
34
34
let p = project ( "foo" )
35
- . file ( "Cargo.toml" , & format ! ( r#"
35
+ . file ( "Cargo.toml" , r#"
36
36
[project]
37
37
name = "foo"
38
38
version = "0.0.1"
39
39
authors = []
40
40
41
41
[dependencies.bar]
42
42
git = "https://127.0.0.1:11/foo/bar"
43
- "# ) )
43
+ "# )
44
44
. file ( ".cargo/config" , r#"
45
45
[http]
46
46
timeout=1
@@ -49,8 +49,8 @@ fn net_retry_git_outputs_warning() {
49
49
50
50
assert_that ( p. cargo_process ( "build" ) . arg ( "-v" ) . arg ( "-j" ) . arg ( "1" ) ,
51
51
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] [..]") ) ;
56
56
}
0 commit comments