Skip to main content

apply_fixes

Function apply_fixes 

Source
pub fn apply_fixes(source: &str, violations: &[LintViolation]) -> String
Expand description

Apply source edits to produce a fixed source string.

Edits are sorted by span start (descending) and applied back-to-front so that earlier offsets remain valid. Overlapping edits are skipped.