Skip to content

Incorrectly adds space in macro parameters #6297

Open
@k-bx

Description

@k-bx

I'm using rust_cmd_lib to do some command execution, and on this simple command:

    let id = run_fun!(id -u).context(h!())?;

rustfmt formats it to:

    let id = run_fun!(id - u).context(h!())?;

Which is definitely not what I want.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions