From 8e8cd374553eb08a3b0cc915589bf63eeec06ed4 Mon Sep 17 00:00:00 2001 From: Artemy Date: Thu, 11 Aug 2022 18:14:32 +0300 Subject: [PATCH] fix: delete an unnecessary reference in the panic handler --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d96a52c..fe47a6e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -20,7 +20,7 @@ fn main() { "{msg}", msg = match info.payload().downcast_ref::() { None => "Program panicked without a message!", - Some(x) => &x, + Some(x) => x, } ); }));