mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Fix warnings
This commit is contained in:
parent
330c92c9a8
commit
69c0e8d70e
3 changed files with 2 additions and 10 deletions
|
|
@ -22,7 +22,7 @@ fn main() {
|
|||
// PanicInfo's payload is usually a &'static str or String.
|
||||
// See: https://doc.rust-lang.org/beta/std/panic/struct.PanicInfo.html#method.payload
|
||||
let message = match panic_info.payload().downcast_ref::<&str>() {
|
||||
Some(message) => message.to_string(),
|
||||
Some(&message) => message.to_string(),
|
||||
None => match panic_info.payload().downcast_ref::<String>() {
|
||||
Some(message) => message.clone(),
|
||||
None => "<no message>".to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue