From 7f54f418a8391bc7437d98e9693c19af5472ca05 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Sun, 24 Jan 2021 19:49:49 +0900 Subject: [PATCH] Suppress clippy --- src/main.rs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main.rs b/src/main.rs index a3000d28..86e45590 100755 --- a/src/main.rs +++ b/src/main.rs @@ -126,7 +126,7 @@ Then try to restart Plume. warn!("Please refer to the documentation to see how to configure it."); } - let rocket = rocket::custom(CONFIG.rocket.clone().unwrap()) + rocket::custom(CONFIG.rocket.clone().unwrap()) .mount( "/", routes![ @@ -268,13 +268,14 @@ Then try to restart Plume. ]) .finalize() .expect("main: csrf fairing creation error"), - ); - - #[cfg(feature = "test")] - let rocket = rocket.mount("/test", routes![test_routes::health,]); - rocket + ) } fn main() { - init_rocket().launch(); + let rocket = init_rocket(); + + #[cfg(feature = "test")] + let rocket = rocket.mount("/test", routes![test_routes::health,]); + + rocket.launch(); }