Simplify launching Rocket
This commit is contained in:
parent
679a73ab63
commit
9ae7ea8eb4
|
@ -10,10 +10,7 @@
|
||||||
#![deny(missing_docs)]
|
#![deny(missing_docs)]
|
||||||
|
|
||||||
/// Sets up and launches Rocket.
|
/// Sets up and launches Rocket.
|
||||||
#[rocket::main]
|
#[rocket::launch]
|
||||||
async fn main() -> Result<(), rocket::Error> {
|
fn rocket() -> _ {
|
||||||
let rocket = podbringer::setup();
|
podbringer::setup()
|
||||||
let _ = rocket.ignite().await?.launch().await?;
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue