refactor and clean up

This commit is contained in:
Folkert 2020-04-03 01:12:17 +02:00
parent 604dbf7215
commit 1981a7e467
7 changed files with 355 additions and 241 deletions

View file

@ -817,14 +817,17 @@ fn write_error_type_help(
}
Record(fields, ext) => {
buf.push('{');
for (label, content) in fields {
buf.push_str(label.as_str());
buf.push_str(": ");
write_error_type_help(home, interns, content, buf, Parens::Unnecessary);
}
buf.push('}');
write_type_ext(ext, buf);
}
Infinite => {
buf.push_str("");
}
other => todo!("cannot format {:?} yet", other),
}
}