mirror of
https://github.com/artegoser/ONLang
synced 2024-11-05 20:43:57 +03:00
Nightly to Stable
This commit is contained in:
parent
5a0189b6ae
commit
cad4ec224b
1 changed files with 2 additions and 4 deletions
|
@ -1,5 +1,3 @@
|
|||
#![feature(box_syntax)]
|
||||
|
||||
use clap::Parser;
|
||||
use std::fs;
|
||||
use std::time::Instant;
|
||||
|
@ -18,12 +16,12 @@ use interpreter::Interpreter;
|
|||
|
||||
fn main() {
|
||||
std::panic::set_hook(
|
||||
box |info| {
|
||||
Box::new(|info| {
|
||||
eprint!("{msg}", msg = match info.message() {
|
||||
None => "Program panicked!".to_owned(),
|
||||
Some(x) => x.to_string()
|
||||
});
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
let start = Instant::now();
|
||||
|
|
Loading…
Reference in a new issue