revert back to ?'s for error propigation
This commit is contained in:
parent
b5e83256d9
commit
8578011107
examples
|
@ -27,8 +27,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
|||
.mount("/", routes![cors])
|
||||
.attach(cors)
|
||||
.launch()
|
||||
.await
|
||||
.ok();
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
@ -55,8 +55,7 @@ async fn main() -> Result<(), Box<dyn Error>> {
|
|||
.mount("/", routes![manual, manual_options])
|
||||
.manage(cors)
|
||||
.launch()
|
||||
.await
|
||||
.ok();
|
||||
.await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue