Skip to main content

apply_fixes

Function apply_fixes 

Source
pub fn apply_fixes(
    findings: &[Finding],
    policy: FixPolicy,
    ask: &mut dyn FnMut(&Fix) -> bool,
    exec: &mut dyn FixExecutor,
) -> Vec<FixOutcome>
Expand description

Offer every finding’s fix under policy. An action identical to one already handled in this run (several findings can share one fix) is neither asked about nor executed again: the later finding gets the same outcome.