]> Repositorios git - scryer-prolog.git/commitdiff
correctly handle anonymous variables when reading
authorMark Thom <[email protected]>
Tue, 16 Oct 2018 04:13:58 +0000 (22:13 -0600)
committerMark Thom <[email protected]>
Tue, 16 Oct 2018 04:13:58 +0000 (22:13 -0600)
src/prolog/read.rs

index 2a40aa94c4e930101c051dc27797cf0a62365526..de6835d2ee5bf68945ed874954b6c19455ddf012 100644 (file)
@@ -131,8 +131,6 @@ pub(crate) fn write_term_to_heap(term: &Term, machine_st: &mut MachineState) ->
                 continue;
             },
             &TermRef::Var(_, _, ref var) => {
-                let v = var.as_str();
-                
                 if let Some((arity, site_h)) = queue.pop_front() {
                     if let Some(addr) = var_dict.get(var).cloned() {
                         machine_st.heap[site_h] = HeapCellValue::Addr(addr);