Skip to content

Commit 06ce67c

Browse files
committed
Fix CI formatting
1 parent 6e96f33 commit 06ce67c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

book/src/development/writing_tests.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ with the reason for the lint, suggested fixes, and line numbers, etc.
107107

108108
> _Note:_ we need to run `TESTNAME=foo_functions cargo uitest` every time before we run
109109
> `cargo dev bless`.
110+
110111
Running `TESTNAME=foo_functions cargo uitest` should pass then. When we
111112
commit our lint, we need to commit the generated `.stderr` files, too.
112113

@@ -115,6 +116,7 @@ specific lint you are creating/editing.
115116

116117
> _Note:_ If the generated `.stderr`, and `.fixed` files are empty,
117118
> they should be removed.
119+
118120
## Cargo Lints
119121

120122
The process of testing is different for Cargo lints in that now we are
@@ -162,7 +164,8 @@ Untracked files:
162164
If the lint you are working on is making use of structured suggestions, the test
163165
file should include a `// run-rustfix` comment at the top.
164166

165-
Structured suggestions tell a user how to fix or re-write certain code that has been linted, they are usually linted with [`span_lint_and_sugg`](https://doc.rust-lang.org/beta/nightly-rustc/clippy_utils/diagnostics/fn.span_lint_and_sugg.html).
167+
Structured suggestions tell a user how to fix or re-write certain code that has been linted, they are usually linted
168+
with [`span_lint_and_sugg`](https://doc.rust-lang.org/beta/nightly-rustc/clippy_utils/diagnostics/fn.span_lint_and_sugg.html).
166169

167170
The `// run-rustfix` comment will additionally run [rustfix] for our test.
168171
Rustfix will apply the suggestions from the lint to the test file code and

0 commit comments

Comments
 (0)