feature name misspelling on `lib.rs`

已关闭 适合新手
#844 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

@Divyansh089 已经在做这个了。

开始于 2026年11月1日。

  • #847 来自 @Divyansh089 —— 已合并

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
rust
领域
documentation

调研方向

错别字位于 src/lib.rs 中 schemars 集成的 doc(cfg(feature = ...)) 属性处,约在第 1950 行,其中 "scheamrs" 应为 "schemars"。请先在 Cargo.toml 中核对 feature 名称,使属性与之匹配,然后修正该字符串。当属性中的 feature 名称拼写正确,且 cargo doc --all-features 构建无错误时,即完成。

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

描述

r-bug

one more thing while working i noticed a small typo in src/lib.rs: the schemars impl has doc(cfg(feature = "scheamrs")) instead of "schemars", so docs.rs shows the wrong feature name.

https://github.com/servo/rust-smallvec/blob/744def93b425df9b70803ce8307065b21a3a0688/src/lib.rs#L1950
It's unrelated to defmt, so I left it out of that pr. Should I open a separate PR for it?

Originally posted by @Divyansh089 in #842

主要语言
Rust
星标
1.8k
派生
237
平均合并
1 天 14 小时
30 天内合并 PR
64

环境准备

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

从这里开始

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

servo/rust-smallvec 的其他 Issue

查看 servo/rust-smallvec 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

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