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 code:
#[derive(serde::Deserialize)] struct Test { a: i32, b: i32, } let string = r#"Test( a: 1 // <-- forgetten comma here b: 2 )"#; ron::from_str::<Test>(string).unwrap();
Produces the following error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { code: Message("missing field `b`"), position: Position { col: 0, line: 0 } }', src/main.rs:67:35
Which is really hard to understand because
b
0, 0
The text was updated successfully, but these errors were encountered:
On a more general note, I was wondering if we could integrate https://github.com/brendanzab/codespan for proper error reporting.
Sorry, something went wrong.
Fix ron-rs#265 with better missing comma detection
ab9a55d
Fix #265 with better missing comma detection (#353)
4e9e4fd
Fix ron-rs#265 with better missing comma detection (ron-rs#353)
7961268
Successfully merging a pull request may close this issue.
This code:
Produces the following error:
Which is really hard to understand because
b
is missing but it doesn't0, 0
The text was updated successfully, but these errors were encountered: