1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-05-05 03:49:18 +00:00

Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2022-04-09 22:14:25 +00:00 committed by GitHub
parent a6bed95de3
commit 3255a0349d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,7 +106,11 @@ pub fn main() {
log!("Previous menu found, loading from training_modpack_menu.conf"); log!("Previous menu found, loading from training_modpack_menu.conf");
unsafe { unsafe {
MENU = get_menu_from_url(MENU, std::str::from_utf8(&menu_conf).unwrap(), false); MENU = get_menu_from_url(MENU, std::str::from_utf8(&menu_conf).unwrap(), false);
DEFAULTS_MENU = get_menu_from_url(DEFAULTS_MENU, std::str::from_utf8(&menu_conf).unwrap(), true); DEFAULTS_MENU = get_menu_from_url(
DEFAULTS_MENU,
std::str::from_utf8(&menu_conf).unwrap(),
true,
);
} }
} else { } else {
log!("Previous menu found but is invalid."); log!("Previous menu found but is invalid.");
@ -114,7 +118,7 @@ pub fn main() {
} else { } else {
log!("No previous menu file found."); log!("No previous menu file found.");
} }
if is_emulator() { if is_emulator() {
unsafe { unsafe {
DEFAULTS_MENU.quick_menu = OnOff::On; DEFAULTS_MENU.quick_menu = OnOff::On;