1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-20 08:54:15 +00:00

Format Rust code using rustfmt

This commit is contained in:
github-actions[bot] 2022-10-11 01:00:53 +00:00 committed by GitHub
parent 3c3ac301fc
commit bb923b2124
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,6 @@
use lazy_static::lazy_static;
use smash::app::lua_bind::ControlModule;
use serde::Deserialize;
use smash::app::lua_bind::ControlModule;
use std::collections::HashMap;
use toml;

View file

@ -118,11 +118,13 @@ pub fn spawn_menu() {
frame_counter::start_counting(QUICK_MENU_FRAME_COUNTER_INDEX);
if MENU.quick_menu == OnOff::Off {
#[cfg(feature = "web_session")] {
#[cfg(feature = "web_session")]
{
WEB_MENU_ACTIVE = true;
}
#[cfg(not(feature = "web_session"))] {
#[cfg(not(feature = "web_session"))]
{
spawn_web_session(new_web_session(false));
}
} else {
@ -429,7 +431,11 @@ unsafe fn new_web_session(hidden: bool) -> WebSession {
.background(Background::BlurredScreenshot)
.htdocs_dir("training_modpack")
.start_page("training_menu.html")
.open_session(if hidden { WebSessionBootMode::InitiallyHidden } else { WebSessionBootMode::Default })
.open_session(if hidden {
WebSessionBootMode::InitiallyHidden
} else {
WebSessionBootMode::Default
})
.unwrap()
}