1
0
Fork 0
mirror of https://gitlab.com/famedly/conduit.git synced 2024-12-29 13:24:27 +01:00

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