Skip to content

Regression - removing comments #132

@Hinton

Description

@Hinton

The 2.1.1 version introduced a regression where trailing comment after arrays are removed.

Running cargo-sort with 2.0.2 would format as:

[features]
uniffi = ["dep:uniffi"] # Uniffi bindings
wasm = [
    "dep:tsify",
    "dep:wasm-bindgen",
    "dep:wasm-bindgen-futures",
] # WASM support

While 2.1.1 & 2.1.3 removes the comments and formats as:

[features]
uniffi = ["dep:uniffi"]
wasm = ["dep:tsify", "dep:wasm-bindgen", "dep:wasm-bindgen-futures"]

Full command used:
cargo sort --workspace --grouped

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions