Skip to content

New lint: detect needless character iteration #4817

@euclio

Description

@euclio

As pointed out in #4796, it would be nice to catch instances of

"foo".chars().all(|c| c.is_ascii())

and replace it with

"foo".is_ascii()

Metadata

Metadata

Labels

A-lintArea: New lints

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions