Skip to content

Commit 5280583

Browse files
committed
Format
1 parent 979d131 commit 5280583

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/expr.rs

+5-11
Original file line numberDiff line numberDiff line change
@@ -180,17 +180,11 @@ pub fn format_expr(
180180
)
181181
}
182182
}
183-
ast::ExprKind::Yield(ref opt_expr) => {
184-
if let Some(ref expr) = *opt_expr {
185-
rewrite_unary_prefix(context, "yield ", &**expr, shape)
186-
} else {
187-
wrap_str(
188-
"yield".to_string(),
189-
context.config.max_width(),
190-
shape,
191-
)
192-
}
193-
}
183+
ast::ExprKind::Yield(ref opt_expr) => if let Some(ref expr) = *opt_expr {
184+
rewrite_unary_prefix(context, "yield ", &**expr, shape)
185+
} else {
186+
wrap_str("yield".to_string(), context.config.max_width(), shape)
187+
},
194188
ast::ExprKind::Closure(capture, ref fn_decl, ref body, _) => {
195189
rewrite_closure(capture, fn_decl, body, expr.span, context, shape)
196190
}

0 commit comments

Comments
 (0)