Skip to main content

clean_held

Function clean_held 

Source
pub fn clean_held(
    held: &[HeldLine],
    scrubber: &Scrubber,
    short: &[Zeroizing<String>],
) -> Result<Vec<HeldLine>, String>
Expand description

The held output cleaned of every value, as the lines to publish. It is cleaned as one text, so a multi-line value is found across the lines it was printed on; lines it took up become one. If a line of such a value that is too short for the scrubber to find alone is still there (printed apart from the rest), the output can’t be published: the reason is returned.