Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Error compile #180

Closed
rogerwilcos opened this issue May 30, 2018 · 1 comment
Closed

Error compile #180

rogerwilcos opened this issue May 30, 2018 · 1 comment

Comments

@rogerwilcos
Copy link

Hi guys.
Sorry, i'm newbie in Rust, but when I tried to compile Polkadot PoC-1, i've catched this panic -

error[E0283]: type annotations required: cannot resolve std::string::String: std::convert::AsRef<_>
--> /home/personal-space/.cargo/git/checkouts/parity-dc9825eb65b3adf1/0ecbb3e/util/network-devp2p/src/service.rs:35:91
info!(target: "network", "Public node URL: {}", Colour::White.bold().paint(public_url.as_ref()));
error: aborting due to previous error

Then, I deleted as_ref() into paint(public_url.as_ref()) and compile without any panics. What's problem? Tell me what I'm doing wrong?

@rogerwilcos
Copy link
Author

liuchengxu pushed a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
fix for revert block (just for --dev, other can't work)
liuchengxu pushed a commit to chainx-org/substrate that referenced this issue Aug 23, 2021
* use trustee origin to replace trustee and root check

* use deserialize instead of decode in bitcoin
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant