diff options
| author | Caleb Cartwright <caleb.cartwright@outlook.com> | 2022-02-15 20:49:36 -0600 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2022-02-15 21:24:39 -0600 |
| commit | 281bf03e6492bf2627c24ea502ce5fd567d7a08e (patch) | |
| tree | 059bed7f01815838b935af5bdee80deadd161e4b | |
| parent | c63d42e80473a0c18714b55058f27506fd24955c (diff) | |
| download | rust-281bf03e6492bf2627c24ea502ce5fd567d7a08e.tar.gz rust-281bf03e6492bf2627c24ea502ce5fd567d7a08e.zip | |
fix: formatting in new test
| -rw-r--r-- | tests/rustfmt/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/rustfmt/main.rs b/tests/rustfmt/main.rs index 6976cc4d346..2262ae3aaac 100644 --- a/tests/rustfmt/main.rs +++ b/tests/rustfmt/main.rs @@ -109,9 +109,7 @@ fn inline_config() { #[test] fn rustfmt_usage_text() { - let args = [ - "--help", - ]; + let args = ["--help"]; let (stdout, _) = rustfmt(&args); - assert!(stdout.contains(&format!("Format Rust code\n\nusage: rustfmt [options] <file>..."))); + assert!(stdout.contains("Format Rust code\n\nusage: rustfmt [options] <file>...")); } |
