1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-01-31 22:47:25 +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");
unsafe {
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 {
log!("Previous menu found but is invalid.");
@ -114,7 +118,7 @@ pub fn main() {
} else {
log!("No previous menu file found.");
}
if is_emulator() {
unsafe {
DEFAULTS_MENU.quick_menu = OnOff::On;