Skip to content

fix breakage caused by impl From<&String> for String #34

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
May 20, 2019
Merged

fix breakage caused by impl From<&String> for String #34

merged 1 commit into from
May 20, 2019

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.

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

Successfully merging this pull request may close these issues.

2 participants