构建基板托盘出现以下故障,如何解决? [英] build substrate pallet get the following fault, how to resolve it?

查看:31
本文介绍了构建基板托盘出现以下故障,如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误[E0282]:需要类型注释-->/Users/apple/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9|第541话让精度 = P::ACCURACY.saturated_into();|^^^^^^^^ 考虑给 accuracy 一个类型

error[E0282]: type annotations needed --> /Users/apple/.cargo/registry/src/github.com-1ecc6299db9ec823/sp-arithmetic-2.0.0/src/fixed_point.rs:541:9 | 541 | let accuracy = P::ACCURACY.saturated_into(); | ^^^^^^^^ consider giving accuracy a type

推荐答案

最新的 Rust nightly 在 MacOS 上被破解.

The latest Rust nightly is broken for MacOS.

要为 Substrate 解决此问题,请运行以下命令:

To solve this for Substrate, run the following:

rustup toolchain install nightly-2020-08-23
rustup target add wasm32-unknown-unknown --toolchain nightly-2020-08-23

然后确保使用以下命令编译您的节点:

Then make sure to compile your node with:

cargo +nightly-2020-08-23 build --release

这篇关于构建基板托盘出现以下故障,如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆