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

deprecate `as_slice` and `as_mut_slice`?

未关闭
#736 4 条评论 2 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@Ankit-cs 已经在做这个了。

开始于 2026年10月7日。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust
领域
backend

调研方向

Start by reading the as_slice and as_mut_slice methods and the AsRef and AsMut implementations in the smallvec source. Check their call sites and tests to understand the impact of deprecating the methods; the issue is a request for comments, so the desired decision and what counts as done are not yet specified.

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

描述

good first issue help wanted r-refactor

as_slice and as_mut_slice are accessors to the underlying slice represented by the smallvec

idiomatic rust consistently prefers trait implementations, such as AsRef and AsMut to be used over bespoke helper methods

since we only implement AsRef<[T]> and AsMut<[T]>, and not other reference-to-reference conversions, calling as_ref and as_mut on a smallvec is unambiguous

request for comments

主要语言
Rust
星标
1.8k
派生
229
平均合并
1 天 41 分钟
30 天内合并 PR
62

环境准备

  • 没有 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 摘要。