We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_expr_delims_necessary
1 parent ba72b15 commit 2765f42Copy full SHA for 2765f42
src/librustc_lint/unused.rs
@@ -384,7 +384,7 @@ trait UnusedDelimLint {
384
fn is_expr_delims_necessary(inner: &ast::Expr, followed_by_block: bool) -> bool {
385
followed_by_block
386
&& match inner.kind {
387
- ast::ExprKind::Ret(_) | ast::ExprKind::Break(..) => true,
+ ExprKind::Ret(_) | ExprKind::Break(..) => true,
388
_ => parser::contains_exterior_struct_lit(&inner),
389
}
390
0 commit comments