Skip to content

Conversation

saks
Copy link
Contributor

@saks saks commented May 20, 2019

From<&String> for String was merged into nightly recently. Current master fails on CI with:

type annotations required: cannot resolve `std::string::String: std::convert::AsRef<_>`

error.
I think this is one of the ways to fix it. It works for me in stable and latest nightly channels (rustc 1.36.0-nightly (6afcb5628 2019-05-19)).

@benashford
Copy link
Owner

Cool, thanks for this 👍

@benashford benashford merged commit aa4607f into benashford:master May 20, 2019
@saks
Copy link
Contributor Author

saks commented May 20, 2019

@benashford, thanks a ton for such a quick review!

@benashford
Copy link
Owner

No problem. I've also now pushed it to crates.io as 0.4.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants