From 52805833694ebe370f570467577afba23f034e34 Mon Sep 17 00:00:00 2001 From: topecongiro Date: Wed, 30 Aug 2017 19:27:50 +0900 Subject: [PATCH] Format --- src/expr.rs | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/expr.rs b/src/expr.rs index f00dc6457f97..f52759424259 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -180,17 +180,11 @@ pub fn format_expr( ) } } - ast::ExprKind::Yield(ref opt_expr) => { - if let Some(ref expr) = *opt_expr { - rewrite_unary_prefix(context, "yield ", &**expr, shape) - } else { - wrap_str( - "yield".to_string(), - context.config.max_width(), - shape, - ) - } - } + ast::ExprKind::Yield(ref opt_expr) => if let Some(ref expr) = *opt_expr { + rewrite_unary_prefix(context, "yield ", &**expr, shape) + } else { + wrap_str("yield".to_string(), context.config.max_width(), shape) + }, ast::ExprKind::Closure(capture, ref fn_decl, ref body, _) => { rewrite_closure(capture, fn_decl, body, expr.span, context, shape) }