Fix an unnecessary_parens warning.

This commit is contained in:
Simon Sapin 2014-07-25 20:19:56 +01:00
parent 03ff79b872
commit 8b910c9478

View file

@ -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;
}