status_line

Function status_line 

Source
pub fn status_line(line: &str) -> String
Expand description

Lay one line out in cargo’s status column (see STATUS_LABEL_WIDTH) against the live stderr color policy, with non-family lines passed through unchanged. Use this at the point a line reaches the terminal, not where it is built: test captures and diagnostics sinks then keep the plain, escape-free text.