fix: delete an unnecessary reference

in the panic handler
This commit is contained in:
Artemy 2022-08-11 18:14:32 +03:00
parent 45e8230545
commit 8e8cd37455

View file

@ -20,7 +20,7 @@ fn main() {
"{msg}",
msg = match info.payload().downcast_ref::<String>() {
None => "Program panicked without a message!",
Some(x) => &x,
Some(x) => x,
}
);
}));