Skip to content

format! can break await #68216

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
Licenser opened this issue Jan 14, 2020 · 2 comments
Closed

format! can break await #68216

Licenser opened this issue Jan 14, 2020 · 2 comments

Comments

@Licenser
Copy link

when using a format!() in a call line that includes an await it imposes odd (and hard to track) errors.

here is an example: https://github.com/Licenser/await-format-bug

pulling format outside of the await line works without issues, either by pre-computing it or by temporarily assigning the future to a own variable.

@LunaBorowska
Copy link
Contributor

LunaBorowska commented Jan 14, 2020

Fixed by #64856, patch available in beta.

@Licenser
Copy link
Author

👍

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

No branches or pull requests

3 participants