apply rustfmt
This commit is contained in:
parent
0d0e5a0042
commit
ed9de9c6c2
|
@ -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
|
||||
|
|
14
src/lib.rs
14
src/lib.rs
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue