π π¦
This will autoformat your code on save, and also provide cargo clippy
insights directly in the editor.
Open Preferences (Ctrl + Shit + P) and add:
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer",
"editor.formatOnSave": true,
},
"rust-analyzer.checkOnSave.command": "clippy",