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

t macro Async regex with block and mutable world has no mutable world. #68

Closed
stefanpieck opened this issue Sep 20, 2020 · 1 comment
Closed

Comments

@stefanpieck
Copy link
Contributor

When trying to use the t macro with matches and a mutable world like

t!(|mut world, matches, _step| { world.value = 5; }),

I get an exception

cannot borrow world as mutable, as it is not declared as mutable

It seems that the generated code lacks the mut keyword.

@bbqsrc
Copy link
Member

bbqsrc commented Sep 20, 2020

Published as v0.7.3. Thanks for the contribution!

@bbqsrc bbqsrc closed this as completed Sep 20, 2020
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

No branches or pull requests

2 participants