I format my source with rustfmt because it is convenient and usually works very well.
However, this XML writing code is a bit confusing:
xmlwriter.write(XmlEvent::start_element("Default").attr("Extension", "rels").attr(
"ContentType",
"application/vnd.openxmlformats-package.relationships+xml",
))?;
xmlwriter.write(XmlEvent::end_element())?;
The .attr("Extension", "rels")
on the first line is very easy to miss.
Is there a way I can give rustfmt a hint that for example starting each .attr()
on a new line would be better?