Suppress clippy

This commit is contained in:
Kitaiti Makoto 2021-01-24 19:49:49 +09:00
parent 8f90ea18bf
commit 7f54f418a8

View File

@ -126,7 +126,7 @@ Then try to restart Plume.
warn!("Please refer to the documentation to see how to configure it."); 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( .mount(
"/", "/",
routes![ routes![
@ -268,13 +268,14 @@ Then try to restart Plume.
]) ])
.finalize() .finalize()
.expect("main: csrf fairing creation error"), .expect("main: csrf fairing creation error"),
); )
#[cfg(feature = "test")]
let rocket = rocket.mount("/test", routes![test_routes::health,]);
rocket
} }
fn main() { fn main() {
init_rocket().launch(); let rocket = init_rocket();
#[cfg(feature = "test")]
let rocket = rocket.mount("/test", routes![test_routes::health,]);
rocket.launch();
} }