Skip to content

Commit 9e4bc0e

Browse files
committed
Implement catch
1 parent 7448cd2 commit 9e4bc0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/expr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ fn format_expr(expr: &ast::Expr,
245245
ast::ExprKind::InlineAsm(..) => {
246246
wrap_str(context.snippet(expr.span), context.config.max_width, shape)
247247
}
248-
// FIXME(#1537)
249-
ast::ExprKind::Catch(..) => unimplemented!(),
248+
// 6 = `catch `
249+
ast::ExprKind::Catch(ref block) => block.rewrite(&context, try_opt!(shape.sub_width(6))),
250250
};
251251
result.and_then(|res| recover_comment_removed(res, expr.span, context, shape))
252252
}

0 commit comments

Comments
 (0)