diff --git a/src/fairing.rs b/src/fairing.rs index ea49ee6..0533b88 100644 --- a/src/fairing.rs +++ b/src/fairing.rs @@ -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!("{}/", CORS_ROOT); let error_route = rocket diff --git a/src/lib.rs b/src/lib.rs index 9e9ff56..1a841a9 100644 --- a/src/lib.rs +++ b/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 { - vec![ - rocket::Route::ranked( - isize::MAX, - http::Method::Options, - "/", - CatchAllOptionsRouteHandler {}, - ), - ] + vec![rocket::Route::ranked( + isize::MAX, + http::Method::Options, + "/", + CatchAllOptionsRouteHandler {}, + )] } /// Handler for the "catch all options route"