Skip to content

Commit

Permalink
Regard digits as an upper case character
Browse files Browse the repository at this point in the history
  • Loading branch information
topecongiro committed Aug 3, 2018
1 parent 8069efb commit 1928ae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/imports.rs
Expand Up @@ -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) {
Expand Down

0 comments on commit 1928ae7

Please sign in to comment.