mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
Fix compilation error
This commit is contained in:
parent
f2c91fc5a8
commit
ebd30033b3
1 changed files with 1 additions and 2 deletions
|
@ -12,8 +12,7 @@ enum DetectedCase {
|
|||
|
||||
fn detect_case(ident: &str) -> DetectedCase {
|
||||
let trimmed_ident = ident.trim_matches('_');
|
||||
let first_lowercase =
|
||||
trimmed_ident.starts_with(|chr| chr.is_ascii_lowercase());
|
||||
let first_lowercase = trimmed_ident.starts_with(|chr: char| chr.is_ascii_lowercase());
|
||||
let mut has_lowercase = first_lowercase;
|
||||
let mut has_uppercase = false;
|
||||
let mut has_underscore = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue