Auto merge of #6363 - o752d:patch-2, r=flip1995
a typo typo changelog: none
This commit is contained in:
commit
831aa9607a
@ -129,7 +129,7 @@ fn match_assert_with_message<'tcx>(cx: &LateContext<'tcx>, expr: &'tcx Expr<'_>)
|
|||||||
if let ExprKind::Block(ref block, _) = arms[0].body.kind;
|
if let ExprKind::Block(ref block, _) = arms[0].body.kind;
|
||||||
if block.stmts.is_empty();
|
if block.stmts.is_empty();
|
||||||
if let Some(block_expr) = &block.expr;
|
if let Some(block_expr) = &block.expr;
|
||||||
// inner block is optional. unwarp it if it exists, or use the expression as is otherwise.
|
// inner block is optional. unwrap it if it exists, or use the expression as is otherwise.
|
||||||
if let Some(begin_panic_call) = match block_expr.kind {
|
if let Some(begin_panic_call) = match block_expr.kind {
|
||||||
ExprKind::Block(ref inner_block, _) => &inner_block.expr,
|
ExprKind::Block(ref inner_block, _) => &inner_block.expr,
|
||||||
_ => &block.expr,
|
_ => &block.expr,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user