Skip to content

Commit

Permalink
Run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor committed Mar 11, 2020
1 parent 7f1680e commit 8176d5e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions actix-cors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8176d5e

Please sign in to comment.