🔥 Remove unwrap usage to improve new apps setup
This commit is contained in:
parent
b7cb4363bd
commit
d66063a1f7
6 changed files with 79 additions and 60 deletions
|
|
@ -21,5 +21,5 @@ async fn hello_name(
|
|||
|
||||
#[pagetop::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
Application::prepare(&HelloName).unwrap().run()?.await
|
||||
Application::prepare(&HelloName).run()?.await
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,5 +16,5 @@ async fn hello_world(request: service::HttpRequest) -> ResultPage<Markup, ErrorP
|
|||
|
||||
#[pagetop::main]
|
||||
async fn main() -> std::io::Result<()> {
|
||||
Application::prepare(&HelloWorld).unwrap().run()?.await
|
||||
Application::prepare(&HelloWorld).run()?.await
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue