pub fn apply_fixes(findings: &[Finding]) -> Result<usize>Expand description
Apply one pass of fixes to findings, returning the number of files modified.
Fixes are applied in descending byte-offset order within each file so that earlier offsets remain valid as later regions are replaced.
When findings overlap (e.g. a nested triple if let produces both an inner
and an outer violation), the innermost finding (highest start_byte) is
applied first and the outer one is skipped for this pass. The caller
should re-run the rules and call apply_fixes again until no files are
modified; each pass peels one layer of nesting.