1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-27 20:34:03 +00:00

Fix formatting

This commit is contained in:
Joshua Sambasivam 2024-03-08 22:58:16 +00:00
parent b2531fdc8b
commit 9e698febf9

View file

@ -51,9 +51,11 @@ pub fn load_from_file() {
info!("Setting initial menu selections..."); info!("Setting initial menu selections...");
unsafe { unsafe {
let mut app = QUICK_MENU_APP.lock(); let mut app = QUICK_MENU_APP.lock();
app.serialized_default_settings = app.serialized_default_settings = serde_json::to_string(&*addr_of!(DEFAULTS_MENU))
serde_json::to_string(&*addr_of!(DEFAULTS_MENU)).expect("Could not serialize DEFAULTS_MENU"); .expect("Could not serialize DEFAULTS_MENU");
app.update_all_from_json(&serde_json::to_string(&*addr_of!(MENU)).expect("Could not serialize MENU")); app.update_all_from_json(
&serde_json::to_string(&*addr_of!(MENU)).expect("Could not serialize MENU"),
);
} }
} }