[Bug] rustc 1.96 下 lithe-git-host、lithe-core-rules 出现 3 条新 clippy 告警

オープン 初心者向け
#1,789 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
76/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
testing-qa

調査の方向性

rustディレクトリから、Rust 1.96でcargo clippy -p lithe-git-host -p lithe-core-rules --all-targetsを実行し、3件の警告を確認します。lithe-core-rules/src/keymap/modifier_gesture.rsの117行目付近と、lithe-git-host/src/configuration.rsの52行目および118行目付近を読みます。警告が解消され、同じコマンドを警告なしで実行できれば完了です。

索引モデルが issue の本文から書いたものです。

説明

area:other bug P2 platform:other review: high
Platform / 平台

Other / 其他

Area / 模块

Other / 其他

Lithe version / Lithe 版本

preview 分支 0d38aca1b(源码构建)

Priority / 优先级

P2 / 后续考虑:目前不着急,可安排到后续版本

OS and architecture / 操作系统与架构

macOS 27.3 arm64

Environment / 环境信息

rustc 1.96.0 (ac68faa20 2026-05-25),cargo clippy 随同版本工具链;CI 使用 dtolnay/rust-toolchain@stable,升到 1.96 后会出现同样告警。

Steps to reproduce / 复现步骤
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. / 我已从报告中移除敏感信息和个人数据。
主要言語
TypeScript
スター
1.8k
フォーク
151
平均マージ
10時間 29分
マージ済み PR(30日)
407

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

1lck/Lithe-IDEA のほかの issue

1lck/Lithe-IDEA の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。