We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a776f5 commit 0cc47ebCopy full SHA for 0cc47eb
1 file changed
crates/vm/src/builtins/str.rs
@@ -1370,7 +1370,7 @@ impl PyStr {
1370
.is_some_and(|c| c == '_' || XidStart::for_char(c));
1371
1372
// a string is not an identifier if it has whitespace or starts with a number
1373
- is_identifier_start && chars.all(|c| XidContinue::for_char(c))
+ is_identifier_start && chars.all(XidContinue::for_char)
1374
}
1375
1376
// https://docs.python.org/3/library/stdtypes.html#str.translate
0 commit comments