Skip to content

Commit 03b4d8a

Browse files
Use optimized rustfmt step in .pre-commit-config.yaml (#18355)
Matches the setup we use in Ruff.
1 parent 9345450 commit 03b4d8a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ repos:
1818

1919
- repo: local
2020
hooks:
21-
- id: cargo-fmt
22-
name: cargo fmt
23-
entry: cargo fmt --
21+
- id: rustfmt
22+
name: rustfmt
23+
entry: rustfmt
2424
language: system
2525
types: [rust]
26-
pass_filenames: false # This makes it a lot faster
2726

2827
- repo: local
2928
hooks:

0 commit comments

Comments
 (0)