pub fn expr_block<'a, T: LintContext>(
    cx: &T,
    expr: &Expr<'_>,
    option: Option<String>,
    default: &'a str,
    indent_relative_to: Option<Span>
) -> Cow<'a, str>
Expand description

Like snippet_block, but add braces if the expr is not an ExprKind::Block. Also takes an Option<String> which can be put inside the braces.