Skip to content

Conversation

@caspermeijn
Copy link
Contributor

Prevents clippy warnings like:

warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator
   --> prost-build/src/code_generator.rs:473:54
    |
473 |                         .and_then(|ty| ty.split('.').last())
    |                                                      ^^^^^^ help: try: `next_back()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last
    = note: `#[warn(clippy::double_ended_iterator_last)]` on by default

Prevents clippy warnings like:
```
warning: called `Iterator::last` on a `DoubleEndedIterator`; this will needlessly iterate the entire iterator
   --> prost-build/src/code_generator.rs:473:54
    |
473 |                         .and_then(|ty| ty.split('.').last())
    |                                                      ^^^^^^ help: try: `next_back()`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#double_ended_iterator_last
    = note: `#[warn(clippy::double_ended_iterator_last)]` on by default
```
@caspermeijn caspermeijn added this pull request to the merge queue Mar 8, 2025
Merged via the queue into tokio-rs:master with commit 89806f9 Mar 8, 2025
16 checks passed
@caspermeijn caspermeijn deleted the clippy_1.85 branch March 8, 2025 10:47
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.

1 participant