mirror of https://github.com/rwf2/Rocket.git
Don't ignore 'launch()' result in guide overview.
This commit is contained in:
parent
f0b133023b
commit
dc1b729f29
|
@ -209,11 +209,11 @@ runtime but unlike `#[launch]`, allows _you_ to start the server:
|
|||
# }
|
||||
|
||||
#[rocket::main]
|
||||
async fn main() {
|
||||
async fn main() -> Result<(), rocket::Error> {
|
||||
rocket::build()
|
||||
.mount("/hello", routes![world])
|
||||
.launch()
|
||||
.await;
|
||||
.await
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue