Skip to content

rustfmt removes comments from visibility annotation #6669

@pacak

Description

@pacak

Noticed a few times

-pub(crate /* important comment */) fn add(left: u64, right: u64) -> u64 {
+pub(crate) fn add(left: u64, right: u64) -> u64 {
     left + right
 }

There seem to be a lot of issues related to comments but I couldn't find this specific one after some basic searching.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions