Update unused_parens lint for placement-in arrow

This commit is contained in:
Simonas Kazlauskas 2015-10-16 23:24:10 +03:00
parent 972c1c6a5f
commit 662082cb7e

View File

@ -369,6 +369,7 @@ impl EarlyLintPass for UnusedParens {
ast::ExprRet(Some(ref value)) => (value, "`return` value", false),
ast::ExprAssign(_, ref value) => (value, "assigned value", false),
ast::ExprAssignOp(_, _, ref value) => (value, "assigned value", false),
ast::ExprInPlace(_, ref value) => (value, "emplacement value", false),
_ => return
};
self.check_unused_parens_core(cx, &**value, msg, struct_lit_needs_parens);