2 Checks for usage of `_.chars().last()` or
3 `_.chars().next_back()` on a `str` to check if it ends with a given char.
6 Readability, this can be written more concisely as
11 name.chars().last() == Some('_') || name.chars().next_back() == Some('-');
16 name.ends_with('_') || name.ends_with('-');