From 1d1748edd845afe34d73dfecb59c10b14e204c50 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Fri, 16 Jan 2026 13:55:57 +0800 Subject: chore: refine pre-commit configuration for Rust hooks Updated the .pre-commit-config.yaml to specify the manifest path for Rust hooks, ensuring proper integration with the Cargo.toml file in the src-tauri directory. This change enhances the functionality of the formatting and linting processes. --- .pre-commit-config.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f8b6348..90070a5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -21,5 +21,6 @@ repos: rev: v1.0 hooks: - id: fmt + args: ["--manifest-path", "src-tauri/Cargo.toml"] - id: clippy - args: ["--", "-D", "warnings"] \ No newline at end of file + args: ["--manifest-path", "src-tauri/Cargo.toml", "--", "-D", "warnings"] \ No newline at end of file -- cgit v1.2.3-70-g09d2