To get compiler errors, rust-analyzer runs
cargo check. We could run
cargo clippy instead, the question is, should we?
At the moment we don't do that, but I the primary reason for that is historical (I just don't use clippy myself).
I am not sure how do decide here, so I figured that I'd just through the question here to get more feedback
To clarify, switching from
check to clippy is simple, one needs to set
"rust-analyzer.checkOnSave.command": "clippy" in the config file of the editor, this is specifically a question of defaults.