clippy_utils::eager_or_lazy

Function switch_to_eager_eval

Source
pub fn switch_to_eager_eval<'tcx>(
    cx: &LateContext<'tcx>,
    expr: &'tcx Expr<'_>,
) -> bool
Expand description

Whether the given expression should be changed to evaluate eagerly