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

Fix async test functions inside a serial mod block #111

Merged
merged 2 commits into from Apr 27, 2024
Merged

Conversation

palfrey
Copy link
Owner

@palfrey palfrey commented Apr 27, 2024

The core problem was that fn_setup for non-async fns generated a function that could be parsed with syn::parse2, where as async ones generated two (the internal function and the wrapper). The code now still generates two, but the internal function is inside the wrapper, and so it's a single syntax item coming out.

@palfrey palfrey merged commit bf32228 into main Apr 27, 2024
7 checks passed
@palfrey palfrey deleted the fix-mod-with-async branch April 27, 2024 19:28
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.

None yet

1 participant