@@ -35,7 +35,8 @@ fn manifest_output(readme_value: &str) -> String {
35
35
"manifest_path":"[..]Cargo.toml",
36
36
"metadata": null,
37
37
"publish": null
38
- }}"# , readme_value
38
+ }}"# ,
39
+ readme_value
39
40
)
40
41
}
41
42
@@ -112,7 +113,9 @@ fn cargo_read_manifest_cwd() {
112
113
. file ( "src/foo.rs" , & main_file ( r#""i am foo""# , & [ ] ) )
113
114
. build ( ) ;
114
115
115
- p. cargo ( "read-manifest" ) . with_json ( & manifest_output_no_readme ( ) ) . run ( ) ;
116
+ p. cargo ( "read-manifest" )
117
+ . with_json ( & manifest_output_no_readme ( ) )
118
+ . run ( ) ;
116
119
}
117
120
118
121
#[ cargo_test]
@@ -126,18 +129,24 @@ fn cargo_read_manifest_default_readme() {
126
129
. file ( "src/foo.rs" , & main_file ( r#""i am foo""# , & [ ] ) )
127
130
. build ( ) ;
128
131
129
- p. cargo ( "read-manifest" ) . with_json ( & manifest_output ( & format ! ( r#""{}""# , readme) ) ) . run ( ) ;
132
+ p. cargo ( "read-manifest" )
133
+ . with_json ( & manifest_output ( & format ! ( r#""{}""# , readme) ) )
134
+ . run ( ) ;
130
135
}
131
136
}
132
137
133
138
#[ cargo_test]
134
139
fn cargo_read_manifest_suppress_default_readme ( ) {
135
140
let p = project ( )
136
- . file ( "Cargo.toml" , & basic_bin_manifest_with_readme ( "foo" , "false" ) )
141
+ . file (
142
+ "Cargo.toml" ,
143
+ & basic_bin_manifest_with_readme ( "foo" , "false" ) ,
144
+ )
137
145
. file ( "README.txt" , "Sample project" )
138
146
. file ( "src/foo.rs" , & main_file ( r#""i am foo""# , & [ ] ) )
139
147
. build ( ) ;
140
148
141
- p. cargo ( "read-manifest" ) . with_json ( & manifest_output_no_readme ( ) ) . run ( ) ;
149
+ p. cargo ( "read-manifest" )
150
+ . with_json ( & manifest_output_no_readme ( ) )
151
+ . run ( ) ;
142
152
}
143
-
0 commit comments