diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2014-07-25 21:12:16 +0100 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2014-07-25 21:12:16 +0100 |
commit | ce84adaa053c55fb1a79a25b92c50dd16401bb8f (patch) | |
tree | 51bc0a06da91e84764e2e3634a19ad1b1408a248 | |
parent | 03ff79b87206d09f4c40f34405f060b4583bd56d (diff) | |
parent | 8b910c9478b81664adb7eb56b4025eb343f0fdb0 (diff) | |
download | servo-ce84adaa053c55fb1a79a25b92c50dd16401bb8f.tar.gz servo-ce84adaa053c55fb1a79a25b92c50dd16401bb8f.zip |
Merge pull request #2926 from servo/unnecessary_parens
Fix an unnecessary_parens warning.
-rw-r--r-- | src/components/script/cors.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/script/cors.rs b/src/components/script/cors.rs index df168084376..12c87e7b364 100644 --- a/src/components/script/cors.rs +++ b/src/components/script/cors.rs @@ -63,7 +63,7 @@ impl CORSRequest { // we can fetch a data URL normally. about:blank can also be fetched by XHR "http" | "https" => { let mut req = CORSRequest::new(referer, destination, mode, method, headers); - req.preflight_flag = (!is_simple_method(&req.method) || mode == ForcedPreflightMode); + req.preflight_flag = !is_simple_method(&req.method) || mode == ForcedPreflightMode; if req.headers.iter().all(|h| is_simple_header(&h)) { req.preflight_flag = true; } |