clippy_utils::source

Function reindent_multiline

Source
pub fn reindent_multiline(
    s: Cow<'_, str>,
    ignore_first: bool,
    indent: Option<usize>,
) -> Cow<'_, str>
Expand description

Reindent a multiline string with possibility of ignoring the first line.