Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

warning: struct `LspsBuyJitChannelResponse` is never constructed

未关闭 适合新手
#9,187 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
冷清
技术栈
rust
领域
backend

调研方向

从 plugins/lsps-plugin/src/client.rs:861 开始,检查 LspsBuyJitChannelResponse 的定义及其附近的使用位置。使用报告中的 RUST_PROFILE=release uv run make 命令重现该警告,然后验证所选择的清理或使用方式变更能够消除死代码警告,且不会引入新的构建失败。

由索引模型根据 Issue 内容生成。

描述

v26.06
Build on Debian 12.
RUST_PROFILE=release uv run make

---
cargo build --profile=release --locked --quiet --example cln-rpc-getinfo
cargo build --profile=release --locked --quiet --example cln-plugin-startup
cargo build --profile=release --locked --quiet --example cln-plugin-reentrant
cargo build --profile=release --locked --quiet --example cln-subscribe-wildcard
cargo build --profile=release --locked --quiet --bin cln-grpc
cargo build --profile=release --locked --quiet --bin clnrest
cargo build --profile=release --locked --quiet --bin cln-lsps-client
warning: struct `LspsBuyJitChannelResponse` is never constructed
   --> plugins/lsps-plugin/src/client.rs:861:8
    |
861 | struct LspsBuyJitChannelResponse {
    |        ^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
---

rustc --version
rustc 1.95.0 (59807616e 2026-04-14)

cargo --version
cargo 1.95.0 (f2d3ce0bd 2026-03-21)

主要语言
C
星标
3.1k
派生
1k
平均合并
3 天 10 小时
30 天内合并 PR
40

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ElementsProject/lightning 的其他 Issue

查看 ElementsProject/lightning 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。