Function clippy::utils::expr_block
[−]
[src]
pub fn expr_block<'a, T: LintContext>(cx: &T, expr: &Expr, option: Option<String>, default: &'a str) -> Cow<'a, str>
Like snippet_block
, but add braces if the expr is not an ExprBlock
.
Also takes an Option<String>
which can be put inside the braces.