mirror of
https://github.com/artegoser/ONLang
synced 2024-12-23 01:23:46 +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!(
|
eprint!(
|
||||||
"{msg}",
|
"{msg}",
|
||||||
msg = match info.payload().downcast_ref::<String>() {
|
msg = match info.payload().downcast_ref::<String>() {
|
||||||
None => "Program panicked without a message!".to_owned(),
|
None => "Program panicked without a message!",
|
||||||
Some(x) => x.to_string(),
|
Some(x) => &x,
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Add table
Reference in a new issue