Skip to content

rustfmt inserts newline between comment and use when both reorder_imports and reorder_imports_in_group is set to true #1789

Description

@topecongiro

rustfmt.toml

reorder_imports = true
reorder_imports_in_group = true

input

// cmp
use std::cmp;
use std::cmp::{max, min, Ordering};

output

// cmp

use std::cmp;
use std::cmp::{max, min, Ordering};

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-commentsArea: commentsI-poor-formattingIssue: poor formattingP-highHigh priorityS-duplicateStatus: duplicate of another issue or PRonly-with-optionRequires a non-default option value to reproduce

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions