Module clippy_utils::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ยง