mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-31 00:57:24 +00:00
Use byte literal instead of cast and ignore too_many_args
This commit is contained in:
parent
c9f001b041
commit
a2f940be4e
3 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue