Auto merge of #105416 - nnethercote:more-linting-tweaks, r=cjgillot
More linting tweaks Squeeze a little more blood from this stone. r? `@cjgillot`
This commit is contained in:
commit
c6fcdb6906
6 changed files with 80 additions and 58 deletions
|
@ -949,6 +949,7 @@ impl UnusedParens {
|
|||
}
|
||||
|
||||
impl EarlyLintPass for UnusedParens {
|
||||
#[inline]
|
||||
fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &ast::Expr) {
|
||||
match e.kind {
|
||||
ExprKind::Let(ref pat, _, _) | ExprKind::ForLoop(ref pat, ..) => {
|
||||
|
@ -1167,6 +1168,7 @@ impl EarlyLintPass for UnusedBraces {
|
|||
<Self as UnusedDelimLint>::check_stmt(self, cx, s)
|
||||
}
|
||||
|
||||
#[inline]
|
||||
fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &ast::Expr) {
|
||||
<Self as UnusedDelimLint>::check_expr(self, cx, e);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue