core/builtins: Simplify vector of None creation [nfc]

This commit is contained in:
David Nadlinger 2022-04-22 23:50:00 +01:00
parent 188208b959
commit b7ee07d7f1

View File

@ -1265,8 +1265,7 @@ pub fn get_builtins(primitives: &mut (PrimitiveStore, Unifier)) -> BuiltinInfo {
})), })),
]; ];
let ast_list: Vec<Option<ast::Stmt<()>>> = let ast_list: Vec<Option<ast::Stmt<()>>> = vec![None; top_level_def_list.len()];
(0..top_level_def_list.len()).map(|_| None).collect();
( (
izip!(top_level_def_list, ast_list).collect_vec(), izip!(top_level_def_list, ast_list).collect_vec(),
&[ &[