Use optimized rustfmt step in .pre-commit-config.yaml (#18355)

Matches the setup we use in Ruff.
This commit is contained in:
Charlie Marsh
2026-03-06 13:49:48 -05:00
committed by GitHub
parent 9345450b4c
commit 03b4d8a2da
+3 -4
View File
@@ -18,12 +18,11 @@ repos:
- repo: local - repo: local
hooks: hooks:
- id: cargo-fmt - id: rustfmt
name: cargo fmt name: rustfmt
entry: cargo fmt -- entry: rustfmt
language: system language: system
types: [rust] types: [rust]
pass_filenames: false # This makes it a lot faster
- repo: local - repo: local
hooks: hooks: