Cargo format and clippy

This commit is contained in:
Chad Stearns 2019-12-23 17:41:59 -05:00
parent 844ca0a50e
commit 589923ddfb
2 changed files with 5 additions and 3 deletions

View file

@ -133,8 +133,10 @@ pub fn fmt_expr<'a>(
fmt_if(buf, loc_condition, loc_then, loc_else, indent);
}
When(loc_condition, branches) => {
buf.push_str("\
when ");
buf.push_str(
"\
when ",
);
fmt_expr(buf, &loc_condition.value, indent, false, true);
buf.push_str(" is\n");