Regard digits as an upper case character

This commit is contained in:
Seiichi Uchida 2018-08-03 20:06:36 +09:00
parent 8069efbe10
commit 1928ae78a2

View file

@ -597,7 +597,8 @@ impl Ord for UseSegment {
use self::UseSegment::*;
fn is_upper_snake_case(s: &str) -> bool {
s.chars().all(|c| c.is_uppercase() || c == '_')
s.chars()
.all(|c| c.is_uppercase() || c == '_' || c.is_numeric())
}
match (self, other) {