From 8176d5e121c480562b836317812b6c342bb57222 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Thu, 12 Mar 2020 05:48:57 +0900 Subject: [PATCH] Run rustfmt --- actix-cors/src/lib.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/actix-cors/src/lib.rs b/actix-cors/src/lib.rs index 6283ce5846..ca6cceb55d 100644 --- a/actix-cors/src/lib.rs +++ b/actix-cors/src/lib.rs @@ -776,10 +776,8 @@ where if let Some(origin) = inner.access_control_allow_origin(res.request().head()) { - res.headers_mut().insert( - header::ACCESS_CONTROL_ALLOW_ORIGIN, - origin, - ); + res.headers_mut() + .insert(header::ACCESS_CONTROL_ALLOW_ORIGIN, origin); }; if let Some(ref expose) = inner.expose_hdrs {