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