Skip to content

Configure number of lines between module comments and module attributes #6134

Open
@Qix-

Description

@Qix-

It would be great if I could have an opinionated configuration for if there are lines between module //! Documentation and module #![attributes].

There could be perhaps One, Zero and Preserve.

Example code:

//! Some module documentation.


#![no_std]

With One:

//! Some module documentation.

#![no_std]

With Zero:

//! Some module documentation.
#![no_std]

and with Preserve (probably the default):

//! Some module documentation.


#![no_std]

Would this be possible? Could be a fun weekend PR for me to do as long as it's something the project would accept :)

Thanks!

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