pub fn format_code(code: &str) -> Result<String, Error>Expand description
Format generated Rust code using rustfmt.
ยงErrors
Error::Io- Spawning or communicating with therustfmtprocess failed.Error::InvalidUtf8-rustfmtproduced output that was not valid UTF-8.