clippy_utils::eager_or_lazy

Function switch_to_lazy_eval

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

Whether the given expression should be changed to evaluate lazily