Skip to content

format! can break await #68216

Closed
Closed
@Licenser

Description

@Licenser

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions