Skip to main content

format_pretty

Function format_pretty 

Source
pub fn format_pretty(diagnostics: &[Diagnostic], color: bool) -> String
Expand description

Pretty-print diagnostics grouped by file with ANSI colour.

Pass color = false when stdout is not a TTY.