fn find_primary_span(message: &Value) -> Option<&Value>Expand description
Extracts a primary span from clippy JSON diagnostic message.
The spans array can have multiple entries. The primary span is identified
by having is_primary: true. If no span has this flag, returns the first span.