make `reserve` derive from `try_reserve`
Maintainers usually reply within 1 day
@bolshoytoster is already working on this.
Since Sep 20, 2026.
Assessment
This issue has not been assessed yet.
Description
How come reserve wasn't just
pub fn reserve(&mut self, additional: usize) {
infallibe(self.try_reserve(additional));
}
?
That's probably out of scope for this PR though.
Same with {,try_}reserve_exact
Originally posted by @bolshoytoster in https://github.com/servo/rust-smallvec/issues/624#issuecomment-5752375705
inherited technical debt @bolshoytoster
- Dominant language
- Rust
- Stars
- 1.7k
- Forks
- 225
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 63
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from servo/rust-smallvec
-
good first issue help wanted r-feature
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
servo/rust-smallvec#716 ·
Maintainers usually reply within 1 day
-
good first issue help wanted r-refactor
Difficulty 1/5 Under an hour Newbie friendliness 90/100
servo/rust-smallvec#715 · 5 comments ·
Maintainers usually reply within 1 day
-
good first issue help wanted r-feature
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
servo/rust-smallvec#714 ·
Maintainers usually reply within 1 day
-
deprecate `from_vec`Opengood first issue help wanted r-refactor
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
servo/rust-smallvec#712 ·
Maintainers usually reply within 1 day
-
good first issue help wanted r-feature
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
servo/rust-smallvec#702 · 1 comment ·
Maintainers usually reply within 1 day
All issues in servo/rust-smallvec
Similar issues
-
contribution
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
tree-sitter/tree-sitter#6005 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
defect
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
agent:triaged bug bughunt pm:pipenv priority:p1
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
SocketDev/socket-patch#744 · 1 comment ·
Maintainers usually reply within 1 day