Skip to main content

apply_fixes_to_content

Function apply_fixes_to_content 

Source
pub fn apply_fixes_to_content(content: &str, fixes: &[&Fix]) -> (String, usize)
Expand description

Apply fixes to content string.

Convenience wrapper around apply_fixes_to_content_detailed for callers that do not need the skipped-fix count.

Returns (modified_content, number_of_fixes_applied).