-
Notifications
You must be signed in to change notification settings - Fork 986
Open
Labels
needs-triageThis issue or PR needs triaging to determine its status. Remove label once sufficiently triaged.This issue or PR needs triaging to determine its status. Remove label once sufficiently triaged.
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
needs-triageThis issue or PR needs triaging to determine its status. Remove label once sufficiently triaged.This issue or PR needs triaging to determine its status. Remove label once sufficiently triaged.