Skip to content

Please provide special case for name=name in format #3861

@joshtriplett

Description

@joshtriplett

I'd like to avoid reformats like this:

-                v.push(new.paint(format!("{:nwidth$}: {:idwidth$}", i2 + offset, c2_short_id, nwidth=nwidth, idwidth=idwidth).as_bytes().to_owned()));
+                v.push(new.paint(format!("{:nwidth$}: {:idwidth$}", i2 + offset, c2_short_id, nwidth = nwidth, idwidth = idwidth).as_bytes().to_owned()));

Could we special-case samename=samename in the arguments of format!-like macros, and avoid adding spaces around the =?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions