8000
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
Parsing an empty input yields:
Object parsing failed, but no additional info was provided
I'd argue that this should just return an empty Vec<Node>, but if you insist on an error it should be more descriptive.
Vec<Node>
Test:
#[test] fn test_empty_input() -> Result<()> { let tokens = quote! {}; let nodes = parse2(tokens)?; assert!(nodes.is_empty()); Ok(()) }
The text was updated successfully, but these errors were encountered:
Yes, i agree with you. It should return empty Vec instead of returning error.
Vec
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Parsing an empty input yields:
I'd argue that this should just return an empty
Vec<Node>
, but if you insist on an error it should be more descriptive.Test:
The text was updated successfully, but these errors were encountered: