use ExitCode when halting so Drop is called, close terminal stream in rustyline Drop

This commit is contained in:
Mark
2023-07-22 14:12:38 -06:00
parent 57e8ed65b0
commit 24450a8827
4 changed files with 15 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
fn main() {
fn main() -> std::process::ExitCode {
use std::sync::atomic::Ordering;
use scryer_prolog::*;
@@ -7,5 +7,5 @@ fn main() {
}).unwrap();
let mut wam = machine::Machine::new();
wam.run_top_level();
wam.run_top_level()
}