diff options
Diffstat (limited to 'crates/tools/tests/cli.rs')
-rw-r--r-- | crates/tools/tests/cli.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/crates/tools/tests/cli.rs b/crates/tools/tests/cli.rs index 2ee4b5223..aab52a4aa 100644 --- a/crates/tools/tests/cli.rs +++ b/crates/tools/tests/cli.rs | |||
@@ -10,19 +10,13 @@ fn generated_grammar_is_fresh() { | |||
10 | #[test] | 10 | #[test] |
11 | fn generated_tests_are_fresh() { | 11 | fn generated_tests_are_fresh() { |
12 | if let Err(error) = gen_tests(Verify) { | 12 | if let Err(error) = gen_tests(Verify) { |
13 | panic!( | 13 | panic!("{}. Please update tests by running `cargo gen-tests`", error); |
14 | "{}. Please update tests by running `cargo gen-tests`", | ||
15 | error | ||
16 | ); | ||
17 | } | 14 | } |
18 | } | 15 | } |
19 | 16 | ||
20 | #[test] | 17 | #[test] |
21 | fn check_code_formatting() { | 18 | fn check_code_formatting() { |
22 | if let Err(error) = run_rustfmt(Verify) { | 19 | if let Err(error) = run_rustfmt(Verify) { |
23 | panic!( | 20 | panic!("{}. Please format the code by running `cargo format`", error); |
24 | "{}. Please format the code by running `cargo format`", | ||
25 | error | ||
26 | ); | ||
27 | } | 21 | } |
28 | } | 22 | } |