Fix clippy warning

This commit is contained in:
Jonas Platte 2021-04-26 18:01:41 +02:00
parent 5be5c9e9f0
commit c2b72773d5
No known key found for this signature in database
GPG key ID: CC154DE0E30B7C67

View file

@ -31,7 +31,7 @@ use tracing::span;
use tracing_subscriber::{prelude::*, Registry};
fn setup_rocket(config: Figment, data: Database) -> rocket::Rocket<rocket::Build> {
let rocket = rocket::custom(config)
rocket::custom(config)
.manage(data)
.mount(
"/",
@ -167,9 +167,7 @@ fn setup_rocket(config: Figment, data: Database) -> rocket::Rocket<rocket::Build
missing_token_catcher,
bad_json_catcher
],
);
rocket
)
}
#[rocket::main]