We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c5b845 commit b9b1b6fCopy full SHA for b9b1b6f
.github/workflows/fmt.yml
@@ -0,0 +1,16 @@
1
+on: [push, pull_request]
2
+
3
+name: Rust fmt check
4
5
+jobs:
6
+ check:
7
+ name: rustfmt
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Checkout source
11
+ - uses: actions/checkout@v2
12
+ - name: Run rustfmt
13
+ run: |
14
+ rustup component add rustfmt
15
+ cargo fmt --version
16
+ cargo fmt -- --check || (echo "Please reformat your code with 'cargo fmt' (version $(cargo fmt --version))"; false)
0 commit comments