Skip to main content

warning_fix_to_edit

Function warning_fix_to_edit 

Source
pub fn warning_fix_to_edit(
    content: &str,
    warning: &LintWarning,
) -> Result<(usize, usize, String), String>
Expand description

Convert a single warning fix to a text edit-style representation This helps validate that individual warning fixes are correctly structured