Skip to main content

apply_warning_fixes

Function apply_warning_fixes 

Source
pub fn apply_warning_fixes(
    content: &str,
    warnings: &[LintWarning],
) -> Result<String, String>
Expand description

Apply a list of warning fixes to content, simulating how the LSP client would apply them This is used for testing consistency between CLI and LSP fix methods