Function rustfmt

Source
pub fn rustfmt(code: String) -> Result<Vec<u8>, Error>
Expand description

Applies rustfmt on the given string containing Rust code. The purpose of this function is to be able to format autogenerated code (e.g. with quote macro).