Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Qix- opened this issue Apr 1, 2024 · 0 comments
Open

Comments

@Qix-
Copy link

Qix- commented Apr 1, 2024

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!

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

No branches or pull requests

2 participants