Function espr::codegen::rust::rustfmt[][src]

pub fn rustfmt(tt: String) -> String
Expand description

Format generated Rust code using rustfmt run as external process.

Panics

  • rustfmt is not found in PATH
  • rustfmt returns error
    • The input of rustfmt is completely generated by this crate, and thus it must be a bug, i.e. not a runtime error.