more various clippy fixes

This commit is contained in:
Folkert 2022-08-17 14:32:32 +02:00
parent f3f6f58d09
commit 6aa168ee0b
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
5 changed files with 8 additions and 8 deletions

View file

@ -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());
}
}