Skip to main content

settle_lossy_warnings

Function settle_lossy_warnings 

Source
pub fn settle_lossy_warnings(warnings: &mut Vec<LintWarning>)
Expand description

Settle the report for a lossily decoded document.

Every fix is dropped: the ranges index the decoded text, whose U+FFFD characters are not the bytes on disk, so no fix can be applied or offered. Past MAX_REPORTED reportable MD094 findings, the rest collapse into one summary at the position of the first one not shown. Runs after suppression, so a suppressed sequence is neither shown nor counted.