diff options
| author | 2026-01-16 14:05:57 +0800 | |
|---|---|---|
| committer | 2026-01-16 14:18:20 +0800 | |
| commit | 3a64328733cf2f3153a7e6841217c4c239cd8b03 (patch) | |
| tree | e7b217b8df602381cab288d3487d1d7cde087cfc | |
| parent | e76f9268537940aad526fd8795f2b23f13e39b12 (diff) | |
| download | DropOut-3a64328733cf2f3153a7e6841217c4c239cd8b03.tar.gz DropOut-3a64328733cf2f3153a7e6841217c4c239cd8b03.zip | |
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.
| -rw-r--r-- | .pre-commit-config.yaml | 4 |
1 files changed, 2 insertions, 2 deletions
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", "--"] |