diff options
| author | Nick Cameron <ncameron@mozilla.com> | 2018-05-13 14:13:24 +1200 |
|---|---|---|
| committer | Nick Cameron <ncameron@mozilla.com> | 2018-05-13 14:13:24 +1200 |
| commit | 5d9f5aa05a668e7dfef87b46d89dad2884df9d41 (patch) | |
| tree | bd5fe0300090045a7588ec18295ebff2038e64e8 /src/test | |
| parent | 8396da188251ae8d6d2970a497ecdf07bf4ef04f (diff) | |
Replace `--write-mode` with `--emit`
cc #1976
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/mod.rs | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/test/mod.rs b/src/test/mod.rs index 631c8076ca7..4de69296e9f 100644 --- a/src/test/mod.rs +++ b/src/test/mod.rs @@ -912,18 +912,7 @@ fn verify_check_works() { let temp_file = make_temp_file("temp_check.rs"); assert_cli::Assert::command(&[ rustfmt().to_str().unwrap(), - "--write-mode=check", - temp_file.path.to_str().unwrap(), - ]).succeeds() - .unwrap(); -} - -#[test] -fn verify_diff_works() { - let temp_file = make_temp_file("temp_diff.rs"); - assert_cli::Assert::command(&[ - rustfmt().to_str().unwrap(), - "--write-mode=diff", + "--check", temp_file.path.to_str().unwrap(), ]).succeeds() .unwrap(); |
