You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cd rust
cargo clippy -p lithe-git-host -p lithe-core-rules --all-targets
Expected behavior / 预期行为
与 preview 其他 crate 一致,clippy 无告警。
Actual behavior / 实际行为
三条新 lint 告警,均在与 Java 拆分无关的 crate:
warning: manual `Range::contains` implementation
--> lithe-core-rules/src/keymap/modifier_gesture.rs:117:16
warning: function `forward_slash_path` is never used
--> lithe-git-host/src/configuration.rs:52:4
warning: this expression creates a reference which is immediately dereferenced by the compiler
--> lithe-git-host/src/configuration.rs:118:9
若工作流以 -D warnings 运行 clippy,stable 工具链升级后这些会变成 CI 失败。
Logs or diagnostic output / 日志或诊断输出
见上。
Screenshots or recordings / 截图或录屏
无。
Checklist / 提交前检查
I searched existing issues for duplicates. / 我已搜索现有 Issue,确认没有重复报告。
I removed secrets and personal data from the report. / 我已从报告中移除敏感信息和个人数据。
Activity
xiaoyumuxi commentedon Nov 7, 2026
补充:同一工具链下
cargo fmt --all --check在rust/lithe-agent-host/src/claude_desktop.rs也报出多处格式差异(该文件自 #1480 后未再改动),应与 clippy 告警一并处理。xiaoyumuxi commentedon Nov 7, 2026
补充:同一个 1.96 工具链里的 rustfmt 1.9.0 也会报格式漂移。在 preview
5a54c41aa上,cd rust && cargo fmt --all -- --check -l列出 10 个文件,全部在lithe-agent-host:Lithe-core-rust
9af1c9c里的同一批文件也有这个问题。两个仓库都没有rust-toolchain.toml,所以 CI 的 stable 升到 1.96 后,cargo fmt --check也会跟着失败。修 clippy 时可以一起处理:要么用 1.96 重新格式化这些文件,要么固定工具链版本。xiaoyumuxi commentedon Nov 13, 2026
同一原因(rustc 1.96 的 clippy,Core crate 没有
-D warnings门禁)在lithe-core也存在,范围比本单列出的三条大,补充在这里,不另开单。在 Lithe-IDEA/Lithe-core-rust 分支
refactor/core-remove-java-special-cases上(基于origin/main65cf823),执行cd rust && cargo clippy --workspace --all-targets --message-format short,环境为 macOS arm64、rustc 1.96.0:--all-targets直接失败lithe-core/src/project/search_index.rs:760:66:fs::Permissions::from_mode(0)触发clippy::non_octal_unix_permissions,这条 lint 默认是 deny。0o000,行为不变。origin/main上就有(d797244),不是该分支引入的。lithe-coreneedless_borrow:19 条;unnecessary_map_or及类似的“可简化”:11 条;nonminimal_bool:6 条;type_complexity:5 条。git/mod.rs:18 条;lsp/interface/plugin_function.rs:7 条;lsp/interface/engine_logging.rs:6 条;lsp/interface/client.rs:6 条;debug/adapters.rs:5 条。origin/main上同样存在。由于 error 让
lithe-core的测试目标停止编译,本单列出的lithe-git-host、lithe-core-rules告警这次没有出现在输出里;修掉 error 后会重新出现。建议在本单修复时一并处理:先修掉这条 error,再清理
lithe-core的告警。#1796 计划的警告门禁要等这些都清零后才能打开。xiaoyumuxi commentedon Nov 13, 2026
forward_slash_path未使用的告警已在 Lithe-IDEA/Lithe-core-rust#26 中修复。剩下两条:modifier_gesture.rs的manual_range_contains,以及configuration.rs的needless_borrow(移动后在rust/crates/git-host/src/configuration.rs:119)。lithe-core 的 84 条告警另记在 #1864。