Skip to content

[unstable option] inline_attribute_width #3343

@dhardy

Description

@dhardy

As you can see from this diff, inline-attributes are viable and sometimes even useful (specifically: making diffs align properly, which has been an issue in Rand's lib.rs quite a few times).

-#[cfg(feature="alloc")] use core::slice; +#[cfg(feature = "alloc")] +use core::slice; 

rustfmt is forcing multi-line attributes everywhere. I would like an option for inline attributes (when small).

Metadata

Metadata

Assignees

No one assigned

    Labels

    unstable-optionTracking issue of an unstable option

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions