From 03b4d8a2daf9c94d7454691f4f62432f736ea2b2 Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Fri, 6 Mar 2026 13:49:48 -0500 Subject: [PATCH] Use optimized `rustfmt` step in `.pre-commit-config.yaml` (#18355) Matches the setup we use in Ruff. --- .pre-commit-config.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cde89820b..ab7c80ec3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,12 +18,11 @@ repos: - repo: local hooks: - - id: cargo-fmt - name: cargo fmt - entry: cargo fmt -- + - id: rustfmt + name: rustfmt + entry: rustfmt language: system types: [rust] - pass_filenames: false # This makes it a lot faster - repo: local hooks: