feat: add cargo clippy --fix --allow-dirty
to pre-commit command
#282
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎯 解决问题
Resolves #277
📝 修改内容
在 Makefile 的
clippy
目标中添加了--fix --allow-dirty
参数:✨ 功能优势
--fix
参数让 clippy 自动修复可以修复的警告--allow-dirty
参数允许在有未提交更改的情况下运行🧪 测试验证
✅ 已验证
make clippy
命令正常工作✅ 新参数能够正确执行
✅ 基于最新 main 分支,无合并冲突
📋 变更文件
Makefile
: 修改 clippy 目标添加新参数这是一个干净的 PR,只包含解决 issue #277 的必要更改,避免了之前分支的合并冲突问题。