Skip to content

Commit

Permalink
rustfmt is not good enough to be applied uncritically
Browse files Browse the repository at this point in the history
  • Loading branch information
kornelski authored and ancwrd1 committed Sep 14, 2024
1 parent 89bb58f commit 8dcfcc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ jobs:
uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
components: clippy
components: clippy, rustfmt

- name: DO NOT USE RUSTFMT
run: "if cargo fmt --quiet --check -- --config-path=/dev/null; then echo >&2 'Do not reformat the code with rustfmt. This project does not use rustfmt.'; fi"

- name: Run cargo clippy
run: cargo clippy --all-features
3 changes: 1 addition & 2 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.please do not use rustfmt, it destroys well-formatted code

# please do not use rustfmt, it destroys well-formatted code
disable_all_formatting = true
ignore = ["/"]

0 comments on commit 8dcfcc2

Please sign in to comment.