I started rustup updateto update my toolchain and saw two warnings:
warning: tool `rustfmt` is already installed, remove it from `/Users/<username>/.cargo/bin`, then run `rustup update` to have rustup manage this tool.
warning: tool `cargo-fmt` is already installed, remove it from `/Users/<username>/.cargo/bin`, then run `rustup update` to have rustup manage this tool.
I followed the instructions in the warning messages and then tried to start rustfmtagain. I got an error
error: toolchain 'stable-x86_64-apple-darwin' does not have the binary rustfmt`
What went wrong and how can I fix it?
source
share