From 8578011107bd0c4a50de1eb8acb4d866b0f77550 Mon Sep 17 00:00:00 2001 From: Zachary Kohnen <14093962+DusterTheFirst@users.noreply.github.com> Date: Wed, 28 Oct 2020 11:24:27 -0400 Subject: [PATCH] revert back to ?'s for error propigation --- examples/fairing.rs | 3 +-- examples/guard.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/examples/fairing.rs b/examples/fairing.rs index 96524a3..9e33b4b 100644 --- a/examples/fairing.rs +++ b/examples/fairing.rs @@ -27,8 +27,7 @@ async fn main() -> Result<(), Box> { .mount("/", routes![cors]) .attach(cors) .launch() - .await - .ok(); + .await?; Ok(()) } diff --git a/examples/guard.rs b/examples/guard.rs index b3c0d6c..28f409a 100644 --- a/examples/guard.rs +++ b/examples/guard.rs @@ -55,8 +55,7 @@ async fn main() -> Result<(), Box> { .mount("/", routes![manual, manual_options]) .manage(cors) .launch() - .await - .ok(); + .await?; Ok(()) }