Skip to content

Commit 127a4ad

Browse files
committed
cargo fmt
1 parent 27b8e12 commit 127a4ad

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

tests/tests/script.rs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,14 +182,24 @@ fn test_whitespace_before_main() {
182182

183183
#[test]
184184
fn test_stable_toolchain() {
185-
let out = rust_script!("--toolchain-version", "stable", "tests/data/script-unstable-feature.rs").unwrap();
185+
let out = rust_script!(
186+
"--toolchain-version",
187+
"stable",
188+
"tests/data/script-unstable-feature.rs"
189+
)
190+
.unwrap();
186191
assert!(out.stderr.contains("`#![feature]` may not be used"));
187192
assert!(!out.success());
188193
}
189194

190195
#[test]
191196
fn test_nightly_toolchain() {
192-
let out = rust_script!("--toolchain-version", "nightly", "tests/data/script-unstable-feature.rs").unwrap();
197+
let out = rust_script!(
198+
"--toolchain-version",
199+
"nightly",
200+
"tests/data/script-unstable-feature.rs"
201+
)
202+
.unwrap();
193203
scan!(out.stdout_output();
194204
("`#![feature]` *may* be used!") => ()
195205
)

0 commit comments

Comments
 (0)