"[rust]": { "editor.formatOnSave": true, "editor.defaultFormatter": "rust-lang.rust-analyzer" }
I tried Baris Balli's solution but only the lower portion worked.