mirror of
https://github.com/artegoser/ONLang
synced 2024-11-05 20:43:57 +03:00
perf: rewrite the return fragment
This commit is contained in:
parent
b9dbc1c82e
commit
45e8230545
1 changed files with 2 additions and 2 deletions
|
@ -19,8 +19,8 @@ fn main() {
|
|||
eprint!(
|
||||
"{msg}",
|
||||
msg = match info.payload().downcast_ref::<String>() {
|
||||
None => "Program panicked without a message!".to_owned(),
|
||||
Some(x) => x.to_string(),
|
||||
None => "Program panicked without a message!",
|
||||
Some(x) => &x,
|
||||
}
|
||||
);
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue