Nightly to Stable

This commit is contained in:
mrMiiao 2022-08-11 16:47:13 +03:00 committed by GitHub
parent 5a0189b6ae
commit cad4ec224b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();