Skip to content

make reserve derive from try_reserve #646

Description

@alejandro-vaz

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 #624 (comment)

inherited technical debt @bolshoytoster

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

good first issueGood for a first contributorhelp wantedNo clear candidate to implement itr-refactorrelated to refactoring

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions