-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
Deserializing to std::borrow::Cow<str> always allocates #1852
Comments
This happens because Lines 1726 to 1739 in d540e72
If specialization was in stable it would be possible to create an impl for |
You can work around this with See (and run) the test for usage. |
|
Seem to work ok by putting the |
Is the demonstration from above the only way to use I realized that I can ship a library w/ its standardized json format and struct definitions with |
Why would it fail? |
That's only if you specifically implement and go through the |
I think this is the intended behavior. For better or worse, there only gets to be 1 |
Can the other alternative be implemented, perhaps via a wrapper? has someone done so already? (similar to the |
Yeah, if it would be helpful someone could implement |
Expected result
Because string
hello
appears in the data as is, with no escaping or reader buffer boundaries.Actual result
The text was updated successfully, but these errors were encountered: