Commit 26c011c
committed
rust: run Clippy on tests and fix existing errors
Summary:
We run Clippy to catch common errors, but by default Clippy only runs on
non-test code. We noticed this in #4487, when Clippy would have caught a
real error (test doing nothing due to `unit_cmp`). This patch adds the
`--tests` flag to our Clippy invocation and fixes all existing warnings.
Test Plan:
The first draft of this PR will include only the workflow change, and so
should fail…
wchargin-branch: rust-clippy-tests
wchargin-source: 3be9bc4b9c2084a9f9dda2b0082227f0619898111 parent 77cf61f commit 26c011c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
246 | | - | |
| 246 | + | |
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| |||
0 commit comments