Skip to content

Rustfmt edition 2018 is adding a space where where it shouldn't #5123

Closed
@oxarbitrage

Description

@oxarbitrage

I am not totally sure if this is a bug or if there is any reason for it but i have some rust code as follows:

let var = funct().0.0;

When i run rustfmt it is adding an extra space to that line so it becomes:

let var = funct().0 .0;

For reference, in this example, funct is something as:

fn funct() -> (type1, type2)

and type1 is something as:

struct type1(u32);

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