pub fn edits(
text: &str,
diagnostics: &[Diagnostic],
match_span: Span,
) -> Option<Vec<(Span, String)>>Expand description
The edits that fill the match at match_span in text, laid out as
bynk-fmt prints arms. None when there is nothing to fill or the last
arm’s line doesn’t allow it: the match closes on that line, or the arm
shares it with other code. A bynk-fmt-canonical file stays canonical.