Skip to content

No trailing comma changes in debug_assert calls #4141

Open
@alercah

Description

@alercah

rustfmt does not change trailing commas in debug_assert invocations, and both of the following are left unchanged:

debug_assert(a == b,);
debug_assert(a == b);

While obviously macros should be handled with care, rustfmt should be able to handle at least common function-like ones as if they were functions, I think.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions