Use byte literal instead of cast and ignore too_many_args

This commit is contained in:
Agus Zubiaga 2024-10-24 00:27:20 -03:00
parent c9f001b041
commit a2f940be4e
No known key found for this signature in database
3 changed files with 3 additions and 1 deletions

View file

@ -383,7 +383,7 @@ impl IdentSuffix {
debug_assert!(len > 0, "Ident name must not be empty");
if bytes[len - 1] == ('!' as u8) {
if bytes[len - 1] == b'!' {
IdentSuffix::Bang
} else {
IdentSuffix::None