require-blank-line-between-documented-members
WarningWarningWarningSeparate struct fields, enum variants and class fields that have doc comments with blank lines.
pub struct Environment { /// Database URL pub database_url: String, /// Port pub port: u16,}pub struct Environment { /// Database URL pub database_url: String, /// Port pub port: u16,}pub struct Post { pub id: PostID, pub content: String, #[sqlx(rename = "authorID")] pub author_id: UserID,}class Options { /// Page width final int width; /// Page height final int height;}class Options { /// Page width final int width; /// Page height final int height;}class Options { /** Page width */ int width; /** Page height */ int height;}class Options { /** Page width */ int width; /** Page height */ int height;}How to fix
When a struct field or enum variant has a doc comment, leave a blank line between the comment and the preceding member. Undocumented members can stay together.
The report points at the containing block because the syntax tree has no blank lines.
How to fix
When a class field has a doc comment, leave a blank line between the comment and the preceding member. Undocumented members can stay together.
The report points at the containing block because the syntax tree has no blank lines.
How to fix
When a class field has a doc comment, leave a blank line between the comment and the preceding member. Undocumented members can stay together.
The report points at the containing block because the syntax tree has no blank lines.