mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
Fix clippy lint
This commit is contained in:
parent
d6669aed2e
commit
abf248372d
1 changed files with 3 additions and 1 deletions
|
@ -746,7 +746,9 @@ fn get_tag_id_payloads(union_layout: UnionLayout, tag_id: TagIdIntType) -> TagPa
|
|||
if tag_id == nullable_id {
|
||||
TagPayloads::Payloads(&[])
|
||||
} else {
|
||||
check_tag_id_oob!(other_tags.len() + 1);
|
||||
let num_tags = other_tags.len() + 1;
|
||||
check_tag_id_oob!(num_tags);
|
||||
|
||||
let tag_id_idx = if tag_id > nullable_id {
|
||||
tag_id - 1
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue