diff --git a/nac3core/src/toplevel/builtins.rs b/nac3core/src/toplevel/builtins.rs index 6413d999d..ef6618bc6 100644 --- a/nac3core/src/toplevel/builtins.rs +++ b/nac3core/src/toplevel/builtins.rs @@ -269,14 +269,15 @@ fn create_fn_by_extern( } pub fn get_builtins(unifier: &mut Unifier, primitives: &PrimitiveStore) -> BuiltinInfo { - let top_level_def_list = BuiltinBuilder::new(unifier, primitives) + BuiltinBuilder::new(unifier, primitives) .build_all_builtins() .into_iter() - .map(|tld| Arc::new(RwLock::new(tld))); - - let ast_list: Vec>> = (0..top_level_def_list.len()).map(|_| None).collect(); - - izip!(top_level_def_list, ast_list).collect_vec() + .map(|tld| { + let tld = Arc::new(RwLock::new(tld)); + let ast = None; + (tld, ast) + }) + .collect() } /// A helper enum used by [`BuiltinBuilder`] diff --git a/nac3core/src/toplevel/mod.rs b/nac3core/src/toplevel/mod.rs index 21e2fac26..c08f287f3 100644 --- a/nac3core/src/toplevel/mod.rs +++ b/nac3core/src/toplevel/mod.rs @@ -20,7 +20,7 @@ use crate::{ }, }; use inkwell::values::BasicValueEnum; -use itertools::{izip, Itertools}; +use itertools::Itertools; use nac3parser::ast::{self, Location, Stmt, StrRef}; use parking_lot::RwLock;