Function rustfmt_nightly::chains::trim_tries

source ·
fn trim_tries(s: &str) -> String
Expand description

Removes try operators (?s) that appear in the given string. If removing them leaves an empty line, remove that line as well unless it is the first line (we need the first newline for detecting pre/post comment).