clippy_utils::hir_utils

Function reduce_exprkind

source
fn reduce_exprkind<'hir>(
    cx: &LateContext<'_>,
    kind: &'hir ExprKind<'hir>,
) -> &'hir ExprKind<'hir>
Expand description

Some simple reductions like { return } => return