make Layout Hash

This commit is contained in:
Folkert 2020-03-18 23:26:17 +01:00
parent b28a6ffa33
commit f3f135eca5
3 changed files with 18 additions and 19 deletions

View file

@ -69,7 +69,7 @@ pub fn basic_type_from_layout<'ctx>(
.as_basic_type_enum()
}
Union(tags) if tags.len() == 1 => {
let (_, layouts) = tags.iter().next().unwrap();
let layouts = tags.iter().next().unwrap();
// Determine types
let mut field_types = Vec::with_capacity_in(layouts.len(), arena);