rustfmt_nightly::chains

Function 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).