Skip to content

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

Closed
@topecongiro

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};

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