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