Remove unnecessary mutability

This commit is contained in:
Anton Kochkov
2019-05-08 14:09:33 +08:00
parent 6240f04769
commit 580dc761d5
6 changed files with 9 additions and 9 deletions

View File

@@ -143,7 +143,7 @@ pub fn compile_term(wam: &mut Machine, packet: TopLevelPacket) -> EvalSession
match packet {
TopLevelPacket::Query(terms, queue) =>
match compile_query(terms, queue, wam.machine_flags()) {
Ok((mut code, vars)) => wam.submit_query(code, vars),
Ok((code, vars)) => wam.submit_query(code, vars),
Err(e) => EvalSession::from(e)
},
TopLevelPacket::Decl(TopLevel::Declaration(decl), _) => {