Skip to content

Commit 654d94c

Browse files
authored
ci: add --no-format to cargo sort check (#2864)
Prevents conflict with taplo which enforces multi-line arrays via array_auto_expand in .taplo.toml.
1 parent 11295b3 commit 654d94c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/actions/rust/pre-merge/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ runs:
7676

7777
- name: Cargo sort
7878
if: inputs.task == 'sort'
79-
run: cargo sort --check --workspace
79+
run: cargo sort --check --no-format --workspace
8080
shell: bash
8181

8282
- name: Cargo machete

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ repos:
131131

132132
- id: cargo-sort
133133
name: cargo sort
134-
entry: cargo sort --workspace
134+
entry: cargo sort --no-format --workspace
135135
language: system
136136
files: (^|/)Cargo\.toml$
137137
pass_filenames: false

0 commit comments

Comments
 (0)