We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3abcfe commit dcc9587Copy full SHA for dcc9587
1 file changed
crates/cargo-platform/src/cfg.rs
@@ -298,11 +298,11 @@ impl<'a> Iterator for Tokenizer<'a> {
298
}
299
300
fn is_ident_start(ch: char) -> bool {
301
- ch == '_' || ('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z')
+ ch == '_' || ch.is_ascii_alphabetic()
302
303
304
fn is_ident_rest(ch: char) -> bool {
305
- is_ident_start(ch) || ('0' <= ch && ch <= '9')
+ is_ident_start(ch) || ch.is_ascii_digit()
306
307
308
impl<'a> Token<'a> {
0 commit comments