revert back to ?'s for error propigation

This commit is contained in:
Zachary Kohnen 2020-10-28 11:24:27 -04:00
parent b5e83256d9
commit 8578011107
No known key found for this signature in database
GPG Key ID: BBCD8EBC910EB8AA
2 changed files with 2 additions and 4 deletions

View File

@ -27,8 +27,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
.mount("/", routes![cors])
.attach(cors)
.launch()
.await
.ok();
.await?;
Ok(())
}

View File

@ -55,8 +55,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
.mount("/", routes![manual, manual_options])
.manage(cors)
.launch()
.await
.ok();
.await?;
Ok(())
}