Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make .swap_remove return Option<T> #12481

Closed
wants to merge 2 commits into from
Closed

Conversation

huonw
Copy link
Member

@huonw huonw commented Feb 23, 2014

This means it now matches (almost) everything else that does indexing into vectors.

Also, minor addition of .reserve to vec_ng.

This is one of the last raw "indexing" method on vectors that returns
`T` instead of the Option.
`.reserve_exact` can cause pathological O(n^2) behaviour, so providing a
`.reserve` that ensures that capacity doubles (if you step 1, 2, ..., n)
is more efficient.

cc rust-lang#11949
@bors bors closed this in 4243cad Feb 25, 2014
@huonw huonw deleted the swap-remove branch February 26, 2014 01:42
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
assist: add label to loop

closes: rust-lang#12392

I changed `'loop` to `'l`, as `cargo check` says `'loop` is an invalid label name.
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 4, 2024
RFC: Document Clippy's teams and team duties

First the big announcement:

**We want to add a new subteam for regular contributors to give them triage rights.**

---

This PR adds a new section to the book which describes the Clippy and Clippy-Contributor teams, with their duties and membership requirements. This is just an initial draft, that outlines what, I think, their responsibilities should be.

I hope everyone in the team is okay with me posting this directly to GitHub. I think a PR makes collaboration a bit easier.

[:framed_picture: Rendered :framed_picture:](https://github.com/xFrednet/rust-clippy/blob/add-team-docs/book/src/development/the_team.md)

---

Once we've decided on this document, I'll create a PR to add the new team on GitHub. As part of this, we'll also reach out to some active contributors, to ask if they would like to join the new team.

---

cc: `@rust-lang/clippy`

cc: rust-lang#6627

changelog: none

r? `@flip1995`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants