### What it does Checks for usage of `_.chars().last()` or `_.chars().next_back()` on a `str` to check if it ends with a given char. ### Why is this bad? Readability, this can be written more concisely as `_.ends_with(_)`. ### Example ``` name.chars().last() == Some('_') || name.chars().next_back() == Some('-'); ``` Use instead: ``` name.ends_with('_') || name.ends_with('-'); ```