All issues
Anti-pattern
Bug risk
Coverage
Documentation
Performance
Secrets
Security
Style
Type check
.chars().next()
To check if a str ends with a given character, use starts_with instead of _.chars().next() == Some(c).
str
starts_with
_.chars().next() == Some(c)
"abc".chars().next() == Some('c');
"abc".starts_with('c')