RS.CLIPPY.NEEDLESS_CHARACTER_ITERATION
Is_ascii() called on a char iterator
This checker is a Clippy lint created by The Rust Project Contributors. The documentation shown here is a copy of the original documentation for: needless_character_iteration. Copyright ©2025 The Rust Team. All rights reserved.
What it does
Checks if an iterator is used to check if a string is ascii.
Why is this bad?
The str type already implements the is_ascii method.
Example
"foo".chars().all(|c| c.is_ascii());
Use instead:
"foo".is_ascii();