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