draw_diagnostics

Function draw_diagnostics 

Source
fn draw_diagnostics(
    (severity, diags_count): (DiagnosticSeverity, u16),
) -> String
Expand description

Draws the diagnostic count for a (severity, count) pair.

Accepts a tuple so it can be passed directly to iterator adapters like .map(draw_diagnostics) without additional closure wrapping.

ยงRationale

Tuple parameter matches iterator (DiagnosticSeverity, u16) item shape, removing a tiny layer of syntactic noise (.map(|(s,c)| draw_diagnostics(s,c))). Keeping zero-elision here is a harmless guard.