apply rustfmt

This commit is contained in:
thanadolps 2021-04-26 14:13:07 +07:00
parent 0d0e5a0042
commit ed9de9c6c2
2 changed files with 10 additions and 9 deletions

View File

@ -189,7 +189,10 @@ mod tests {
#[rocket::async_test] #[rocket::async_test]
async fn error_route_is_mounted_on_ignite() { async fn error_route_is_mounted_on_ignite() {
let rocket = rocket(make_cors_options()).ignite().await.expect("to ignite"); let rocket = rocket(make_cors_options())
.ignite()
.await
.expect("to ignite");
let expected_uri = format!("{}/<status>", CORS_ROOT); let expected_uri = format!("{}/<status>", CORS_ROOT);
let error_route = rocket let error_route = rocket

View File

@ -1989,14 +1989,12 @@ fn actual_request_response(options: &Cors, origin: &str) -> Response {
/// ///
/// See the documentation at the [crate root](index.html) for usage information. /// See the documentation at the [crate root](index.html) for usage information.
pub fn catch_all_options_routes() -> Vec<rocket::Route> { pub fn catch_all_options_routes() -> Vec<rocket::Route> {
vec![ vec![rocket::Route::ranked(
rocket::Route::ranked(
isize::MAX, isize::MAX,
http::Method::Options, http::Method::Options,
"/<catch_all_options_route..>", "/<catch_all_options_route..>",
CatchAllOptionsRouteHandler {}, CatchAllOptionsRouteHandler {},
), )]
]
} }
/// Handler for the "catch all options route" /// Handler for the "catch all options route"