From ed9de9c6c271037f1fcadd9af35a97b41d90b9e2 Mon Sep 17 00:00:00 2001 From: thanadolps Date: Mon, 26 Apr 2021 14:13:07 +0700 Subject: [PATCH] apply rustfmt --- src/fairing.rs | 5 ++++- src/lib.rs | 14 ++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) 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"