Skip to content

rogerwilcos/rust-tips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

rust-tips

some good things

cannot resolve std::convert::AsRef<_>

error

error[E0283]: type annotations required: cannot resolve std::string::String: std::convert::AsRef<_> --> /home/.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

Resolve:

Change public_url.as_ref() to AsRef::<str>::as_ref(public_url)

About

some good things

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors