mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Improve TypedIdent spacing in formatting
This commit is contained in:
parent
bd5b9700ca
commit
e6eb9138f7
2 changed files with 5 additions and 11 deletions
|
@ -184,7 +184,7 @@ fn fmt_typed_ident<'a>(buf: &mut Buf<'a>, entry: &TypedIdent<'a>, indent: u16) {
|
|||
buf.indent(indent);
|
||||
buf.push_str(ident.value);
|
||||
fmt_default_spaces(buf, spaces_before_colon, " ", indent);
|
||||
buf.push(':');
|
||||
buf.push_str(": ");
|
||||
ann.value.format(buf, indent);
|
||||
}
|
||||
SpaceBefore(sub_entry, spaces) => {
|
||||
|
|
|
@ -2620,12 +2620,6 @@ mod test_fmt {
|
|||
|
||||
#[test]
|
||||
fn single_line_platform() {
|
||||
// There are many places that there should probably be spaces, e.g.:
|
||||
// requires { model=>Model, msg=>Msg } { main : Effect {} }
|
||||
// ^
|
||||
// putLine : Str -> Effect {},
|
||||
// ^
|
||||
// TODO: improve spacing
|
||||
module_formats_same(
|
||||
"platform folkertdev/foo \
|
||||
requires { model=>Model, msg=>Msg } { main : Effect {} } \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue