Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Warning for unused import that is used #957

Open
gkorland opened this issue May 25, 2022 · 1 comment
Open

Warning for unused import that is used #957

gkorland opened this issue May 25, 2022 · 1 comment

Comments

@gkorland
Copy link

Warning for unused import while the type is used (cargo clippy doesn't yell this warning)

image
image

This were this example came from: https://github.com/RedisJSON/RedisJSON/blob/master/src/lib.rs

@lnicola
Copy link
Member

lnicola commented May 27, 2022

Not sure what's up, but it seems related to the #[cfg]. It appears to work in https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer, you should probably try that instead.

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

No branches or pull requests

2 participants