summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/web.rs13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/bin/web.rs b/src/bin/web.rs
index 3186207..6913263 100644
--- a/src/bin/web.rs
+++ b/src/bin/web.rs
@@ -23,14 +23,9 @@ async fn main() -> Result {
let service = view::make_service()?;
- let app_factory = move ||
- App::new()
- .configure(|cfg| service(cfg));
-
- HttpServer::new(app_factory)
- .bind(port)?
- .run()
- .await?;
-
+ let app_factory = move || App::new().configure(|cfg| service(cfg));
+
+ HttpServer::new(app_factory).bind(port)?.run().await?;
+
Ok(())
}