diff options
| -rw-r--r-- | src/expr.rs | 2 | ||||
| -rw-r--r-- | src/utils.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.rs b/src/expr.rs index d46d7c53bdb..c500b30b998 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -404,7 +404,7 @@ pub(crate) fn format_expr( // These do not occur in the AST because macros aren't expanded. unreachable!() } - ast::ExprKind::Err | ast::ExprKind::Dummy => None, + ast::ExprKind::Err(_) | ast::ExprKind::Dummy => None, }; expr_rw diff --git a/src/utils.rs b/src/utils.rs index b6b37e492e9..d4218cff75a 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -498,7 +498,7 @@ pub(crate) fn is_block_expr(context: &RewriteContext<'_>, expr: &ast::Expr, repr | ast::ExprKind::Cast(..) | ast::ExprKind::Continue(..) | ast::ExprKind::Dummy - | ast::ExprKind::Err + | ast::ExprKind::Err(_) | ast::ExprKind::Field(..) | ast::ExprKind::IncludedBytes(..) | ast::ExprKind::InlineAsm(..) |
