Skip to content

Commit 4283b53

Browse files
ci: add workspace flag to cargo-sort
1 parent 75ff7f7 commit 4283b53

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: cargo machete
4141

4242
- name: Check manifest formatting
43-
run: cargo sort --check
43+
run: cargo sort --workspace --check
4444

4545
- name: Check formatting
4646
run: cargo fmt --all --check

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@ repos:
3535
rev: v2.0.1
3636
hooks:
3737
- id: cargo-sort
38+
args: ['--workspace']

0 commit comments

Comments
 (0)