Moved tunables into Store

This commit is contained in:
Syrus
2020-06-18 12:56:38 -07:00
parent 83203a849b
commit 5273fa0cae
18 changed files with 118 additions and 167 deletions

View File

@@ -33,7 +33,7 @@ impl Table {
/// All the elements in the table will be set to the `init` value.
pub fn new(store: &Store, ty: TableType, init: Val) -> Result<Table, RuntimeError> {
let item = init.into_checked_anyfunc(store)?;
let tunables = store.engine().tunables();
let tunables = store.tunables();
let table_plan = tunables.table_plan(ty);
let table = tunables
.create_table(table_plan)