From cad4ec224b26b2260e1d2d51149bb3272272fc4b Mon Sep 17 00:00:00 2001 From: mrMiiao <90341146+mrMiiao@users.noreply.github.com> Date: Thu, 11 Aug 2022 16:47:13 +0300 Subject: [PATCH] Nightly to Stable --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 644a609..6928b53 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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();