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]
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 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.
pub fn catch_all_options_routes() -> Vec<rocket::Route> {
vec![
rocket::Route::ranked(
isize::MAX,
http::Method::Options,
"/<catch_all_options_route..>",
CatchAllOptionsRouteHandler {},
),
]
vec![rocket::Route::ranked(
isize::MAX,
http::Method::Options,
"/<catch_all_options_route..>",
CatchAllOptionsRouteHandler {},
)]
}
/// Handler for the "catch all options route"