From e76f9268537940aad526fd8795f2b23f13e39b12 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Fri, 16 Jan 2026 14:00:34 +0800 Subject: chore: update pre-commit configuration to include additional argument for Rust hooks Modified the .pre-commit-config.yaml to add an extra argument to the formatting and clippy hooks, ensuring proper handling of additional parameters during execution. This change enhances the flexibility of the linting and formatting processes for Rust code. --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f553eae..2862e75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,6 +21,6 @@ repos: rev: v1.0 hooks: - id: fmt - args: ["--manifest-path", "src-tauri/Cargo.toml"] + args: ["--manifest-path", "src-tauri/Cargo.toml", "--"] - id: clippy - args: ["--manifest-path", "src-tauri/Cargo.toml"] + args: ["--manifest-path", "src-tauri/Cargo.toml", "--"] -- cgit v1.2.3-70-g09d2