From 8dcfcc28e2b3882f847751fc73096eb77684449f Mon Sep 17 00:00:00 2001 From: Kornel Date: Thu, 11 May 2023 19:47:44 +0100 Subject: [PATCH] rustfmt is not good enough to be applied uncritically --- .github/workflows/main.yml | 5 ++++- .rustfmt.toml | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b6c306ce..711c986a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/.rustfmt.toml b/.rustfmt.toml index 17b40223..fc720892 100644 --- a/.rustfmt.toml +++ b/.rustfmt.toml @@ -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 = ["/"]