Rollup merge of #24642 - tshepang:why-be-negative, r=huonw
This commit is contained in:
commit
d09a0cda3a
1 changed files with 2 additions and 0 deletions
|
@ -923,6 +923,8 @@ impl NonSnakeCase {
|
|||
allow_underscore = match c {
|
||||
'_' if !allow_underscore => return false,
|
||||
'_' => false,
|
||||
// It would be more obvious to use `c.is_lowercase()`,
|
||||
// but some characters do not have a lowercase form
|
||||
c if !c.is_uppercase() => true,
|
||||
_ => return false,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue