remove Option wrapper from cached_query

This commit is contained in:
Mark Thom
2018-12-10 21:21:15 -07:00
parent a4406f784a
commit 226bb7f9ed
4 changed files with 16 additions and 23 deletions

View File

@@ -40,7 +40,8 @@ fn print_code(code: &Code) {
}
// throw errors if declaration or query found.
fn compile_relation(tl: &TopLevel, non_counted_bt: bool, flags: MachineFlags) -> Result<Code, ParserError>
fn compile_relation(tl: &TopLevel, non_counted_bt: bool, flags: MachineFlags)
-> Result<Code, ParserError>
{
let mut cg = CodeGenerator::<DebrayAllocator>::new(non_counted_bt, flags);
@@ -307,7 +308,6 @@ impl ListingCompiler {
let wam_indices = &mut wam.indices;
let atom_tbl = wam_indices.atom_tbl.clone();
let mut worker = TopLevelBatchWorker::new(src, atom_tbl.clone(), flags,
wam_indices, &mut wam.policies,
&mut wam.code_repo);