-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add AsRef<[u8]> for both str and String #25162
Conversation
Does this compile when rebased on #25120? It makes the meaning of |
Ah carps, you're right, that does make it ambiguous. Possibilities:
|
After some discussion with @aturon he has convinced me that we definitely want the ability to add these That will be a breaking change but is likely to have very little fallout, so we'll probably include it for beta. Could you update this PR with that change? |
@alexcrichton updated, passes |
Thanks @seanmonstar! |
Dabo on irc says something broke with .connect()
|
Full code example that breaks: http://is.gd/vdlpTma This isn't a major use-case I wouldn't think, but just noting an example of that here. |
I forgot to include [breaking-change] in the last commit to :( |
Adding beta-accepted as this has been merged into beta |
r? @aturon