Implement Show for RingBuf#14642
Closed
aochagavia wants to merge 1 commit intorust-lang:masterfrom
aochagavia:pr
Closed
Implement Show for RingBuf#14642aochagavia wants to merge 1 commit intorust-lang:masterfrom aochagavia:pr
aochagavia wants to merge 1 commit intorust-lang:masterfrom
aochagavia:pr
Conversation
bors
added a commit
that referenced
this pull request
Jun 5, 2014
The contents of a `RingBuf` are shown in the same way as the contents of a `Vector`. See the tests for examples.
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Jun 5, 2023
minor: Use `CargoConfig.extra_args` for fetching metadata Fixes rust-lang#14510
flip1995
pushed a commit
to flip1995/rust
that referenced
this pull request
May 15, 2025
I'm working on rust-lang/rust-clippy#14542 and I decided to name the lint `unnecessary_map` originally. However when I ran the command, I got: ``` thread 'main' panicked at clippy_dev/src/new_lint.rs:450:5: Lint `unnecessary_map` already defined in `/home/imperio/rust/clippy/clippy_lints/src/methods/mod.rs` note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` It's because there is already a `unnecessary_map_or`, which matches the `.contains()` call. This PR strengthens this check. changelog: Fix `new_lint` clippy command r? @flip1995
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The contents of a
RingBufare shown in the same way as the contents of aVector. See the tests for examples.