Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clippy false positive lint (redundant_closure_call) #27

Open
OverOrion opened this issue Aug 3, 2023 · 1 comment
Open

clippy false positive lint (redundant_closure_call) #27

OverOrion opened this issue Aug 3, 2023 · 1 comment

Comments

@OverOrion
Copy link
Contributor

For some reason (maybe different toolchain versions?) there is a false positive clippy lint:

error: try not to call a closure in the expression where it is declared
  --> core-primitives/enclave-metrics/src/lib.rs:38:2
   |
38 |     TopPoolSizeDecrement,
   |     ^^^^^^^^^^^^^^^^^^^^ help: try doing something like: `TopPoolSizeDecrement`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_closure_cal

This particular lint (clippy::redundant_closure_call) is disabled in both workspaces so developers will not be confused.

@OverOrion OverOrion changed the title clippy false positive clippy false positive lint (redundant_closure_call) Aug 3, 2023
@OverOrion OverOrion changed the title clippy false positive lint (redundant_closure_call) clippy false positive lint (redundant_closure_call) Aug 3, 2023
@brenzi
Copy link
Member

brenzi commented Aug 29, 2023

maybe put into the clippy config file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants