From 8b910c9478b81664adb7eb56b4025eb343f0fdb0 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 25 Jul 2014 20:19:56 +0100 Subject: [PATCH] Fix an unnecessary_parens warning. --- src/components/script/cors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }