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:
parent
3c3ac301fc
commit
bb923b2124
2 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue