mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 14:24:45 +00:00
more various clippy fixes
This commit is contained in:
parent
f3f6f58d09
commit
6aa168ee0b
5 changed files with 8 additions and 8 deletions
|
@ -451,7 +451,7 @@ fn collect_ctors(matrix: &RefPatternMatrix) -> MutMap<TagId, Union> {
|
|||
let mut ctors = MutMap::default();
|
||||
|
||||
for row in matrix {
|
||||
if let Some(Ctor(union, id, _)) = row.get(row.len() - 1) {
|
||||
if let Some(Ctor(union, id, _)) = row.last() {
|
||||
ctors.insert(*id, union.clone());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue