Skip to content

Commit

Permalink
ci: add rustfmt.toml and remove rustfmt config from ci
Browse files Browse the repository at this point in the history
  • Loading branch information
iajoiner committed Nov 4, 2024
1 parent 36d9ae3 commit ad14a78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ jobs:
# files: lcov.info
# fail_ci_if_error: true

# Run cargo fmt --all -- --config imports_granularity=Crate,group_imports=One --check
# Run cargo fmt --all -- --check
format:
name: Format
runs-on: ubuntu-latest
Expand All @@ -194,7 +194,7 @@ jobs:
curl https://sh.rustup.rs -sSf | bash -s -- -y --profile minimal && source ~/.cargo/env
rustup component add rustfmt
- name: Run cargo fmt
run: cargo fmt --all -- --config imports_granularity=Crate,group_imports=One --check
run: cargo fmt --all -- --check

udeps:
name: Unused Dependencies
Expand Down
2 changes: 2 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
imports_granularity = "Crate"
group_imports = "One"

0 comments on commit ad14a78

Please sign in to comment.