mirror of
https://github.com/artegoser/ONLang
synced 2024-12-23 09:33:44 +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 clap::Parser;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
|
@ -18,12 +16,12 @@ use interpreter::Interpreter;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
std::panic::set_hook(
|
std::panic::set_hook(
|
||||||
box |info| {
|
Box::new(|info| {
|
||||||
eprint!("{msg}", msg = match info.message() {
|
eprint!("{msg}", msg = match info.message() {
|
||||||
None => "Program panicked!".to_owned(),
|
None => "Program panicked!".to_owned(),
|
||||||
Some(x) => x.to_string()
|
Some(x) => x.to_string()
|
||||||
});
|
});
|
||||||
}
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
let start = Instant::now();
|
let start = Instant::now();
|
||||||
|
|
Loading…
Add table
Reference in a new issue