mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
Cargo format and clippy
This commit is contained in:
parent
844ca0a50e
commit
589923ddfb
2 changed files with 5 additions and 3 deletions
|
@ -133,8 +133,10 @@ pub fn fmt_expr<'a>(
|
||||||
fmt_if(buf, loc_condition, loc_then, loc_else, indent);
|
fmt_if(buf, loc_condition, loc_then, loc_else, indent);
|
||||||
}
|
}
|
||||||
When(loc_condition, branches) => {
|
When(loc_condition, branches) => {
|
||||||
buf.push_str("\
|
buf.push_str(
|
||||||
when ");
|
"\
|
||||||
|
when ",
|
||||||
|
);
|
||||||
fmt_expr(buf, &loc_condition.value, indent, false, true);
|
fmt_expr(buf, &loc_condition.value, indent, false, true);
|
||||||
buf.push_str(" is\n");
|
buf.push_str(" is\n");
|
||||||
|
|
||||||
|
|
|
@ -4,4 +4,4 @@ pub static ELSE: &str = "else";
|
||||||
pub static CASE: &str = "case";
|
pub static CASE: &str = "case";
|
||||||
pub static WHEN: &str = "when";
|
pub static WHEN: &str = "when";
|
||||||
pub static AS: &str = "as";
|
pub static AS: &str = "as";
|
||||||
pub static IS: &str = "is";
|
pub static IS: &str = "is";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue