diff --git a/src/fmt/expr.rs b/src/fmt/expr.rs index 9b453ba02b..8bfdc29cdd 100644 --- a/src/fmt/expr.rs +++ b/src/fmt/expr.rs @@ -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"); diff --git a/src/parse/keyword.rs b/src/parse/keyword.rs index d18d9b2db2..beb69f0b3a 100644 --- a/src/parse/keyword.rs +++ b/src/parse/keyword.rs @@ -4,4 +4,4 @@ pub static ELSE: &str = "else"; pub static CASE: &str = "case"; pub static WHEN: &str = "when"; pub static AS: &str = "as"; -pub static IS: &str = "is"; \ No newline at end of file +pub static IS: &str = "is";