vscode-rust icon indicating copy to clipboard operation
vscode-rust copied to clipboard

Warning for unused import that is used

Open gkorland opened this issue 3 years ago • 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

gkorland avatar May 25 '22 16:05 gkorland

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.

lnicola avatar May 27 '22 11:05 lnicola