clippy_utils

Module eager_or_lazy

source
Expand description

Utilities for evaluating whether eagerly evaluated expressions can be made lazy and vice versa.

Things to consider:

  • does the expression have side-effects?
  • is the expression computationally expensive?

See lints:

  • unnecessary-lazy-evaluations
  • or-fun-call
  • option-if-let-else

Enumsยง

Functionsยง