Skip to content

Rustfmt indents single-line comments weirdly #3826

@Boscop

Description

@Boscop

Using rustfmt 1.4.8-nightly (afb1ee1c 2019-09-08).

It indents such single-line comments weirdly (one tab and one space more indented):

image

When I remove // foo, it indents them normally. But it should also indent them normally with // foo present!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions