json_to_short

Function json_to_short 

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

Converts a clippy JSON line to short format for reviewdog.

ยงPanics

Panics if the JSON line does not have the expected diagnostic structure (i.e., missing primary span or /message/message). Non-diagnostic JSON lines (like build-finished) should be filtered out before calling this function.