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
This should be an error not a panic.
fn main() { let data = &[b'"', b'\xed', b'\xa0', b'\x80', b'"']; serde_json::from_slice::<String>(data).ok(); }
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Utf8Error { valid_up_to: 0 }'
Caused by this unwrap.
The text was updated successfully, but these errors were encountered:
we could generally enable the clippy lint for denying unwrap
Sorry, something went wrong.
I fixed the panic in #100 and I filed #101 to consider enabling the Clippy lint.
dtolnay
No branches or pull requests
This should be an error not a panic.
Caused by this unwrap.
The text was updated successfully, but these errors were encountered: