mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-24 10:54:16 +00:00
Format Rust code using rustfmt
This commit is contained in:
parent
fa451986e0
commit
30cdd61e26
1 changed files with 3 additions and 5 deletions
|
@ -59,11 +59,9 @@ pub fn main() {
|
||||||
|
|
||||||
let msg = match info.payload().downcast_ref::<&'static str>() {
|
let msg = match info.payload().downcast_ref::<&'static str>() {
|
||||||
Some(s) => *s,
|
Some(s) => *s,
|
||||||
None => {
|
None => match info.payload().downcast_ref::<String>() {
|
||||||
match info.payload().downcast_ref::<String>() {
|
|
||||||
Some(s) => &s[..],
|
Some(s) => &s[..],
|
||||||
None => "Box<Any>",
|
None => "Box<Any>",
|
||||||
}
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue