Co-authored-by: LowR <low.ryoshida@gmail.com>
This commit is contained in:
Max Heller 2023-07-28 09:22:22 -04:00 committed by GitHub
parent 9349769363
commit 047bc47ecd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -435,7 +435,7 @@ impl Builder {
// `PartialOrd` because it has an alias of ">".
.filter(|alias| {
let mut chars = alias.chars();
chars.next().map(unicode_ident::is_xid_start).unwrap_or(false)
chars.next().is_some_and(unicode_ident::is_xid_start)
&& chars.all(unicode_ident::is_xid_continue)
})
.join(", ");