File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ len_without_is_empty = "allow"
105105len_zero = " allow"
106106let_and_return = " allow"
107107manual_flatten = " allow"
108- manual_is_ascii_check = " allow"
109108manual_map = " allow"
110109manual_range_contains = " allow"
111110manual_strip = " allow"
Original file line number Diff line number Diff line change @@ -23,16 +23,16 @@ impl Dialect for MySqlDialectWithBackTicks {
2323 // See https://dev.mysql.com/doc/refman/8.0/en/identifiers.html.
2424 // We don't yet support identifiers beginning with numbers, as that
2525 // makes it hard to distinguish numeric literals.
26- ( 'a' ..= 'z' ) . contains ( & ch )
27- || ( 'A' ..= 'Z' ) . contains ( & ch )
26+ ch . is_ascii_lowercase ( )
27+ || ch . is_ascii_uppercase ( )
2828 || ch == '_'
2929 || ch == '$'
3030 || ch == '@'
3131 || ( '\u{0080}' ..='\u{ffff}' ) . contains ( & ch)
3232 }
3333
3434 fn is_identifier_part ( & self , ch : char ) -> bool {
35- self . is_identifier_start ( ch) || ( '0' ..= '9' ) . contains ( & ch )
35+ self . is_identifier_start ( ch) || ch . is_ascii_digit ( )
3636 }
3737}
3838
You can’t perform that action at this time.
0 commit comments