We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
https://docs.serde.rs/serde_json/ser/trait.Formatter.html#method.write_string_fragment
rq is using unsafe to get a &str: https://github.com/dflemstr/rq/blob/v0.9.2/src/value/json.rs#L224
let s = unsafe { str::from_utf8_unchecked(fragment) };
It should be our responsibility to guarantee that the fragment is UTF-8.
cc @dflemstr
The text was updated successfully, but these errors were encountered:
Frustratingly, it is such an easy fix: #269.
Sorry, something went wrong.
I approve of this 👍
Fixed in #297.
No branches or pull requests
https://docs.serde.rs/serde_json/ser/trait.Formatter.html#method.write_string_fragment
rq is using unsafe to get a &str: https://github.com/dflemstr/rq/blob/v0.9.2/src/value/json.rs#L224
It should be our responsibility to guarantee that the fragment is UTF-8.
cc @dflemstr
The text was updated successfully, but these errors were encountered: