Skip to content

extra::ringbuf: Implement method .swap(uint, uint) just like vector #9520

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

Merged
merged 1 commit into from
Sep 26, 2013
Merged

extra::ringbuf: Implement method .swap(uint, uint) just like vector #9520

merged 1 commit into from
Sep 26, 2013

Conversation

bluss
Copy link
Member

@bluss bluss commented Sep 26, 2013

extra::ringbuf: Implement method .swap(uint, uint) just like vector

RingBuf::swap(&mut self, i, j) swaps the element at indices i and j
if both elements are in bounds, otherwise it fails.

RingBuf::swap(&mut self, i, j) swaps the element at indices `i` and `j`
if both elements are in bounds, otherwise it fails.
bors added a commit that referenced this pull request Sep 26, 2013
extra::ringbuf: Implement method `.swap(uint, uint)` just like vector

RingBuf::swap(&mut self, i, j) swaps the element at indices `i` and `j`
if both elements are in bounds, otherwise it fails.
@bors bors closed this Sep 26, 2013
@bors bors merged commit 57757a8 into rust-lang:master Sep 26, 2013
@bluss bluss deleted the ringbuf-swap branch September 26, 2013 21:40
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 10, 2023
more than just `&self` in non-standard implementations.

changelog: Fix [`len_without_is_empty`] false positive when len has a
non-standard method signature

Fixes rust-lang#9520
flip1995 pushed a commit to flip1995/rust that referenced this pull request Feb 10, 2023
prevents `len_without_is_empty` from yielding positive when `len` takes arguments besides `&self`

Fixes rust-lang#9520

---

changelog: FP [`len_without_is_empty`]: No longer lints, if `len` as a non-default signature
[rust-lang#10255](rust-lang/rust-clippy#10255)
<!-- changelog_checked -->
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