Stable -> Nightly

This commit is contained in:
mrMiiao 2022-08-11 16:57:41 +03:00 committed by GitHub
parent d2ecdfc997
commit ab43d8f201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,3 +1,5 @@
#![feature(box_syntax, panic_info_message)]
use clap::Parser;
use std::fs;
use std::time::Instant;
@ -16,12 +18,12 @@ use interpreter::Interpreter;
fn main() {
std::panic::set_hook(
Box::new(|info| {
box |info| {
eprint!("{msg}", msg = match info.message() {
None => "Program panicked!".to_owned(),
Some(x) => x.to_string()
});
})
}
);
let start = Instant::now();