Function clippy_utils::source::expr_block
source · pub fn expr_block<T: LintContext>(
cx: &T,
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
.