Closed borchero closed 7 months ago
Take a look to https://github.com/la10736/rstest/tree/my_await_mut
Take a look to https://github.com/la10736/rstest/tree/my_await_mut
Nice! Thanks for taking over, this looks much better 😁 I'm not too familiar with writing procedural macros yet :eyes: shall I close this PR in favor of your changes?
No, include these changes like are yours and handle tests and change log. I didn't do it if you didn't prompt me : smile:
@la10736 latest change now includes your suggestion for improvement along with e2e and unit tests :)
Thanks! Can you create a new release with this change @la10736? 🙏🏼
I'll try to do it later in the day
@borchero Done
Thanks a lot!
Motivation
Currently, the following code fails to compile:
as (the inner function) expands to
This is most likely undesired: by marking the awaited future value as
mut
, one would expect thata
is mutable.Changes
This PR augments the mutability identifier to result in the following expanded code that now compiles as expected: