rust-lang/vscode-rust

Warning for unused import that is used

gkorland opened this issue · 1 comments

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

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.