Skip to content

Commit ebd3003

Browse files
committed
Fix compilation error
1 parent f2c91fc commit ebd3003

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/hir_ty/src/diagnostics/decl_check/str_helpers.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ enum DetectedCase {
1212

1313
fn detect_case(ident: &str) -> DetectedCase {
1414
let trimmed_ident = ident.trim_matches('_');
15-
let first_lowercase =
16-
trimmed_ident.starts_with(|chr| chr.is_ascii_lowercase());
15+
let first_lowercase = trimmed_ident.starts_with(|chr: char| chr.is_ascii_lowercase());
1716
let mut has_lowercase = first_lowercase;
1817
let mut has_uppercase = false;
1918
let mut has_underscore = false;

0 commit comments

Comments
 (0)