We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96cc01b commit a27ed33Copy full SHA for a27ed33
src/imports.rs
@@ -943,10 +943,10 @@ impl Ord for UseSegment {
943
version_sort(ia, ib)
944
} else {
945
// snake_case < CamelCase < UPPER_SNAKE_CASE
946
- if ia.starts_with(char::is_uppercase) && ib.starts_with(char::is_lowercase) {
+ if ia.starts_with(char::is_uppercase) && !ib.starts_with(char::is_uppercase) {
947
return Ordering::Greater;
948
}
949
- if ia.starts_with(char::is_lowercase) && ib.starts_with(char::is_uppercase) {
+ if !ia.starts_with(char::is_uppercase) && ib.starts_with(char::is_uppercase) {
950
return Ordering::Less;
951
952
if is_upper_snake_case(ia) && !is_upper_snake_case(ib) {
0 commit comments