From 5d9f5aa05a668e7dfef87b46d89dad2884df9d41 Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Sun, 13 May 2018 14:13:24 +1200 Subject: Replace `--write-mode` with `--emit` cc #1976 --- src/test/mod.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/test') 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(); -- cgit 1.4.1-3-g733a5