Skip to content

Commit 9659303

Browse files
Mikhail Zabalueveugene-babichenko
Mikhail Zabaluev
authored andcommitted
Don't use --all flag with cargo fmt
It adds nothing useful to this project and furthermore, slows down the test run. Per suggestion in rust-lang/rustfmt#4247 (comment)
1 parent 75070e2 commit 9659303

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,6 @@ jobs:
145145
components: rustfmt, clippy
146146
override: true
147147

148-
- name: Restore cargo registry index
149-
uses: actions/cache@v1
150-
with:
151-
path: ~/.cargo/registry/index
152-
key: cargo-index-v1-${{ needs.update-deps.outputs.crates-io-index-head }}
153-
154148
- name: Print rustfmt version
155149
run: rustfmt --version
156150

@@ -159,7 +153,13 @@ jobs:
159153
continue-on-error: false
160154
with:
161155
command: fmt
162-
args: --all -- --check
156+
args: -- --check
157+
158+
- name: Restore cargo registry index
159+
uses: actions/cache@v1
160+
with:
161+
path: ~/.cargo/registry/index
162+
key: cargo-index-v1-${{ needs.update-deps.outputs.crates-io-index-head }}
163163

164164
- name: Restore dependency crates
165165
uses: actions/cache@v1

0 commit comments

Comments
 (0)