Skip to main content

render_stdout

Function render_stdout 

Source
pub fn render_stdout(result: &FmtResult, json: bool) -> String
Expand description

Render the fmt result for stdout.

If json is true emits a JSON object; otherwise a one-line human message.