From 3a64328733cf2f3153a7e6841217c4c239cd8b03 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Fri, 16 Jan 2026 14:05:57 +0800 Subject: chore: update pre-commit configuration to change clippy and formatting arguments Modified the .pre-commit-config.yaml to adjust the arguments for the formatting and clippy hooks, switching to a check mode for formatting and enforcing warnings as errors for clippy. This change improves 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 2862e75..a8ee70d 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: ["--check", "--manifest-path", "src-tauri/Cargo.toml", "--"] - id: clippy - args: ["--manifest-path", "src-tauri/Cargo.toml", "--"] + args: ["--manifest-path", "src-tauri/Cargo.toml", "-D", "warnings", "--"] -- cgit v1.2.3-70-g09d2