Skip to content

Inconsistent formatting of attributes #2208

Closed
@osa1

Description

@osa1

In this struct:

struct Test {
    /// foo
    #[serde(default)]
    pub join: Vec<String>,
    #[serde(default)] pub tls: bool,
}

Both fields have the same attribute but they're formatted differently, because of the comment line in the first one.

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