Skip to content
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

Enforce No Args Fallback Return Type #189

Open
wants to merge 1 commit into
base: rel/0.7.0-rc.1
Choose a base branch
from

Conversation

rauljordan
Copy link
Contributor

The fallback func with no args should return Result<(), Vec>. It should not be possible to return Result<Vec, Vec>. Having an explicit match statement fixes the issue

@gligneul
Copy link

I think at some point would be better to manually verify the return type instead of relying on type inference of generated code. The error messages would probably be better as well.

@rauljordan
Copy link
Contributor Author

Agreed...I think I'll go ahead and do that before we merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants