RS.CLIPPY.MANUAL_NEXT_BACK
Manual reverse iteration of `DoubleEndedIterator`
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: manual_next_back. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks for .rev().next() on a DoubleEndedIterator
Why is this bad?
.next_back() is cleaner.
Example
foo.iter().rev().next();
Use instead:
foo.iter().next_back();