我运行了 rustup update
来更新我的工具链,并看到了两个警告:
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.
我按照警告信息中的说明进行了操作,然后尝试再次运行rustfmt
。但是我收到了一个错误。
error: toolchain 'stable-x86_64-apple-darwin' does not have the binary rustfmt`
什么出了问题,我应该如何修复?
rustfmt
的问题。我也是这样。 - theicfire