-
Notifications
You must be signed in to change notification settings - Fork 996
Open
Labels
A-whitespaceArea: whitespace and its handlingArea: whitespace and its handlingC-feature-requestCategory: a feature request (not decided/implemented)Category: a feature request (not decided/implemented)
Description
related to: #3382
I'd like to request an option to specify the amount of blank lines between related items.
Related items either share the same concrete Type:
struct Aenum Aimpl Aimpl<T> Aimpl Trait for A
Or the same Trait type:
trait Timpl T for A
Formatting rule
- Between items in the same group: N blank lines. (default to 0 or 1)
- Between different groups: exactly M blank lines (typically 1).
Example normalization (N = 0, M = 1):
struct A;
impl A {
//...
}
struct B;
impl B {
//...
};Example configuration could be
top_level_items_related_blank_lines = 0
top_level_items_unrelated_blank_lines = 1Inferring macros would be out of scope.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-whitespaceArea: whitespace and its handlingArea: whitespace and its handlingC-feature-requestCategory: a feature request (not decided/implemented)Category: a feature request (not decided/implemented)