Suggest using eq_ignore_ascii_case
on non case-sensitive string comparision #13204
Closed
Description
opened on Aug 2, 2024
What it does
Lint that suggests using eq_ignore_ascii_case
on non case-sensitive string comparision.
Advantage
- avoid extra allocation(example)
Drawbacks
No response
Example
a.to_xx_case() == b.to_xx_case()
Could be written as:
a.eq_ignore_ascii_case(b)
Activity