Function clippy_utils::source::expr_block

source ยท
pub fn expr_block(
    sess: &impl HasSession,
    expr: &Expr<'_>,
    outer: SyntaxContext,
    default: &str,
    indent_relative_to: Option<Span>,
    app: &mut Applicability,
) -> String
Expand description

Like snippet_block, but add braces if the expr is not an ExprKind::Block.