Skip to content

Commit

Permalink
Update unused_parens lint for placement-in arrow
Browse files Browse the repository at this point in the history
  • Loading branch information
nagisa committed Oct 27, 2015
1 parent 972c1c6 commit 662082c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_lint/unused.rs
Expand Up @@ -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);
Expand Down

0 comments on commit 662082c

Please sign in to comment.