parent
d594910a2d
commit
6b7fcf720a
2 changed files with 12 additions and 1 deletions
|
@ -476,8 +476,11 @@ trait UnusedDelimLint {
|
|||
|
||||
lhs_needs_parens
|
||||
|| (followed_by_block
|
||||
&& match inner.kind {
|
||||
&& match &inner.kind {
|
||||
ExprKind::Ret(_) | ExprKind::Break(..) | ExprKind::Yield(..) => true,
|
||||
ExprKind::Range(_lhs, Some(rhs), _limits) => {
|
||||
!classify::expr_requires_semi_to_be_stmt(&rhs)
|
||||
}
|
||||
_ => parser::contains_exterior_struct_lit(&inner),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue