Skip to content

Commit 2765f42

Browse files
committed
cleanup is_expr_delims_necessary
1 parent ba72b15 commit 2765f42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_lint/unused.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ trait UnusedDelimLint {
384384
fn is_expr_delims_necessary(inner: &ast::Expr, followed_by_block: bool) -> bool {
385385
followed_by_block
386386
&& match inner.kind {
387-
ast::ExprKind::Ret(_) | ast::ExprKind::Break(..) => true,
387+
ExprKind::Ret(_) | ExprKind::Break(..) => true,
388388
_ => parser::contains_exterior_struct_lit(&inner),
389389
}
390390
}

0 commit comments

Comments
 (0)