错误:组件“clippy”目标 {target} 无法下载

发布于 2025-01-17 10:05:06 字数 305 浏览 4 评论 0原文

当使用固定版本使用固定版本的rust-toolchain

1.59.0

运行CARGO CLIPPY 1.59.0 中时,我知道

error: the 'cargo-clippy' binary, normally provided by the 'clippy' component, is not applicable to the '1.59.0-aarch64-apple-darwin' toolchain

该如何解决此问题?

When using a custom rust-toolchain file with a pinned version

1.59.0

and running cargo clippy in 1.59.0, I get

error: the 'cargo-clippy' binary, normally provided by the 'clippy' component, is not applicable to the '1.59.0-aarch64-apple-darwin' toolchain

How do I fix this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黑白记忆 2025-01-24 10:05:06

这可能是由于Rustup被损坏。解决此问题的最可靠方法是重新安装Rustup

This might be due to rustup being corrupted. The surest way to fix this is reinstalling rustup

  • rustup self uninstall
  • Then reinstall it via rustup.rs
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文