[−][src]Function sql_db_mapper::format_rust
pub fn format_rust(
value: &str,
rustfmt_config: Option<&str>,
rustfmt_config_path: Option<&str>
) -> String
Calls rustfmt (the program) on the input
On any rustfmt error stderr is written to and a copy of the input is returned
Can panic if acquiring/writing to stdin fails or the the text written to stdout or stderr by rustfmt is not valid utf8