Fix clippy warning

next
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
1 changed files with 2 additions and 4 deletions

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]