Bug 1443853 - Remove unnecessary paranthesis around function argument. r?jgraham
Silences one compiler warning.
MozReview-Commit-ID: FSKV9Ia2iXt
--- a/testing/geckodriver/src/marionette.rs
+++ b/testing/geckodriver/src/marionette.rs
@@ -980,20 +980,20 @@ impl MarionetteSession {
|x| {
Ok((try_opt!(x.as_string(),
ErrorStatus::UnknownError,
"Cookie domain must be string")).to_string())
}));
let expiry = try!(
Nullable::from_json(x.find("expiry").unwrap_or(&Json::Null),
|x| {
- Ok(Date::new((try_opt!(
+ Ok(Date::new(try_opt!(
x.as_u64(),
ErrorStatus::UnknownError,
- "Cookie expiry must be a positive integer"))))
+ "Cookie expiry must be a positive integer")))
}));
let secure = try_opt!(
x.find("secure").map_or(Some(false), |x| x.as_boolean()),
ErrorStatus::UnknownError,
"Cookie secure flag must be boolean");
let http_only = try_opt!(
x.find("httpOnly").map_or(Some(false), |x| x.as_boolean()),
ErrorStatus::UnknownError,