From bb6cb076034dd62031258b07cda6332400b26d9e Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Tue, 8 Nov 2022 21:25:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20Elimina=20async=20innecesario=20?= =?UTF-8?q?(=C2=BFseguro=3F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- drust/src/main.rs | 2 +- pagetop/src/app/application.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drust/src/main.rs b/drust/src/main.rs index 9f45fc65..3f2073d2 100644 --- a/drust/src/main.rs +++ b/drust/src/main.rs @@ -27,5 +27,5 @@ impl ModuleTrait for Drust { #[actix_web::main] async fn main() -> std::io::Result<()> { - Application::prepare(&Drust).await?.run()?.await + Application::prepare(&Drust).unwrap().run()?.await } diff --git a/pagetop/src/app/application.rs b/pagetop/src/app/application.rs index db912a99..5482992c 100644 --- a/pagetop/src/app/application.rs +++ b/pagetop/src/app/application.rs @@ -15,7 +15,7 @@ pub struct Application { } impl Application { - pub async fn prepare(app: ModuleStaticRef) -> Result { + pub fn prepare(app: ModuleStaticRef) -> Result { // Rótulo de presentación. super::banner::print_on_startup();