unnecessary_lazy_evaluations
and once_cell::sync::Lazy
#10462
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-positive
Issue: The lint was triggered on code it shouldn't have
Uh oh!
There was an error while loading. Please reload this page.
Summary
I believe this lint should have a specialization for the common case when a
Lazy
is being de-referenced. e.g. unwrapping lazily constructed defaultsLint Name
unnecessary_lazy_evaluations
Reproducer
I tried this code:
I saw this happen:
I expected to see this happen:
No problimo
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: