Skip to content

Commit dcae5fc

Browse files
committed
Rustfmt
1 parent d1fe89e commit dcae5fc

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

tests/testsuite/read_manifest.rs

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ fn manifest_output(readme_value: &str) -> String {
3535
"manifest_path":"[..]Cargo.toml",
3636
"metadata": null,
3737
"publish": null
38-
}}"#, readme_value
38+
}}"#,
39+
readme_value
3940
)
4041
}
4142

@@ -112,7 +113,9 @@ fn cargo_read_manifest_cwd() {
112113
.file("src/foo.rs", &main_file(r#""i am foo""#, &[]))
113114
.build();
114115

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();
116119
}
117120

118121
#[cargo_test]
@@ -126,18 +129,24 @@ fn cargo_read_manifest_default_readme() {
126129
.file("src/foo.rs", &main_file(r#""i am foo""#, &[]))
127130
.build();
128131

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();
130135
}
131136
}
132137

133138
#[cargo_test]
134139
fn cargo_read_manifest_suppress_default_readme() {
135140
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+
)
137145
.file("README.txt", "Sample project")
138146
.file("src/foo.rs", &main_file(r#""i am foo""#, &[]))
139147
.build();
140148

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();
142152
}
143-

0 commit comments

Comments
 (0)