1
0
Fork 0
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:
github-actions[bot] 2022-11-01 20:58:36 +00:00 committed by GitHub
parent fa451986e0
commit 30cdd61e26
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>",
}
}, },
}; };