fix formatting

This commit is contained in:
Evan Almloff committed 2023-08-21 16:07:49 -05:00
1 parent 99268acc05
commit e162e3e4cf
4 files changed
+24 -10

No files matched your search

+1 -1
View File
@@ -237,7 +237,7 @@ pub(crate) struct DesktopPlatform {
}
impl Platform for DesktopPlatform {
fn start(config: &CrateConfig,serve: &ConfigOptsServe) -> Result<Self> {
fn start(config: &CrateConfig, serve: &ConfigOptsServe) -> Result<Self> {
let (child, first_build_result) = start_desktop(config, serve.skip_assets)?;
log::info!("🚀 Starting development server...");
+8 -3
View File
@@ -47,7 +47,12 @@ struct WsReloadState {
update: broadcast::Sender<()>,
}
pub async fn startup(port: u16, config: CrateConfig, start_browser: bool, skip_assets: bool) -> Result<()> {
pub async fn startup(
port: u16,
config: CrateConfig,
start_browser: bool,
skip_assets: bool,
) -> Result<()> {
// ctrl-c shutdown checker
let _crate_config = config.clone();
let _ = ctrlc::set_handler(move || {
@@ -72,7 +77,7 @@ async fn serve_default(
port: u16,
config: CrateConfig,
start_browser: bool,
skip_assets: bool
skip_assets: bool,
) -> Result<()> {
let first_build_result = crate::builder::build(&config, false, skip_assets)?;
@@ -134,7 +139,7 @@ async fn serve_hot_reload(
port: u16,
config: CrateConfig,
start_browser: bool,
skip_assets: bool
skip_assets: bool,
) -> Result<()> {
let first_build_result = crate::builder::build(&config, false, skip_assets)?;