Skip to content

[unstable option] inline_attribute_width #3343

Open

Description

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).

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

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