aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorIgor Aleksanov <[email protected]>2020-10-05 18:35:52 +0100
committerIgor Aleksanov <[email protected]>2020-10-12 09:05:00 +0100
commitebd30033b3743fafe0a0182b5ae34ffb27fe43ff (patch)
tree2c699e976934bd11a66bc8cb07301c728a487725 /crates
parentf2c91fc5a8c22b8ac80f100b2b666f2dc9baa67c (diff)
Fix compilation error
Diffstat (limited to 'crates')
-rw-r--r--crates/hir_ty/src/diagnostics/decl_check/str_helpers.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/hir_ty/src/diagnostics/decl_check/str_helpers.rs b/crates/hir_ty/src/diagnostics/decl_check/str_helpers.rs
index c1ab1a675..2e1468c4c 100644
--- a/crates/hir_ty/src/diagnostics/decl_check/str_helpers.rs
+++ b/crates/hir_ty/src/diagnostics/decl_check/str_helpers.rs
@@ -12,8 +12,7 @@ enum DetectedCase {
12 12
13fn detect_case(ident: &str) -> DetectedCase { 13fn detect_case(ident: &str) -> DetectedCase {
14 let trimmed_ident = ident.trim_matches('_'); 14 let trimmed_ident = ident.trim_matches('_');
15 let first_lowercase = 15 let first_lowercase = trimmed_ident.starts_with(|chr: char| chr.is_ascii_lowercase());
16 trimmed_ident.starts_with(|chr| chr.is_ascii_lowercase());
17 let mut has_lowercase = first_lowercase; 16 let mut has_lowercase = first_lowercase;
18 let mut has_uppercase = false; 17 let mut has_uppercase = false;
19 let mut has_underscore = false; 18 let mut has_underscore = false;