don't clone Layout

This commit is contained in:
Folkert 2021-03-22 14:08:48 +01:00
parent fa013e7d01
commit 55cb780249
18 changed files with 250 additions and 360 deletions

View file

@ -176,7 +176,7 @@ pub fn helper<'a>(
}
let (_, main_fn_layout) = match procedures.keys().find(|(s, _)| *s == main_fn_symbol) {
Some(found) => found.clone(),
Some(found) => *found,
None => panic!(
"The main function symbol {:?} does not have a procedure in {:?}",
main_fn_symbol,