Skip to content

Implement Show for RingBuf #14642

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

Closed
wants to merge 1 commit into from
Closed

Implement Show for RingBuf #14642

wants to merge 1 commit into from

Conversation

aochagavia
Copy link
Contributor

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 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 bors closed this Jun 5, 2014
@aochagavia aochagavia deleted the pr branch June 6, 2014 13:16
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
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