Skip to content

Commit f0af1d4

Browse files
committed
Remove CompressedIfEmpty option from fn_args_density
It was identical to Tall
1 parent 677446e commit f0af1d4

File tree

4 files changed

+2
-89
lines changed

4 files changed

+2
-89
lines changed

Configurations.md

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ See also [`comment_width`](#comment_width).
636636
Argument density in functions
637637

638638
- **Default value**: `"Tall"`
639-
- **Possible values**: `"Compressed"`, `"CompressedIfEmpty"`, `"Tall"`, `"Vertical"`
639+
- **Possible values**: `"Compressed"`, `"Tall"`, `"Vertical"`
640640

641641
#### `"Tall"` (default):
642642

@@ -696,35 +696,6 @@ trait Lorem {
696696
}
697697
```
698698

699-
#### `"CompressedIfEmpty"`:
700-
701-
```rust
702-
trait Lorem {
703-
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet);
704-
705-
fn lorem(ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet) {
706-
// body
707-
}
708-
709-
fn lorem(
710-
ipsum: Ipsum, dolor: Dolor, sit: Sit, amet: Amet, consectetur: Consectetur,
711-
adipiscing: Adipiscing, elit: Elit,
712-
);
713-
714-
fn lorem(
715-
ipsum: Ipsum,
716-
dolor: Dolor,
717-
sit: Sit,
718-
amet: Amet,
719-
consectetur: Consectetur,
720-
adipiscing: Adipiscing,
721-
elit: Elit,
722-
) {
723-
// body
724-
}
725-
}
726-
```
727-
728699
#### `"Vertical"`:
729700

730701
```rust

src/config.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ configuration_option_enum! { Density:
7777
Compressed,
7878
// Use more lines.
7979
Tall,
80-
// Try to compress if the body is empty.
81-
CompressedIfEmpty,
8280
// Place every item on a separate line.
8381
Vertical,
8482
}
@@ -95,7 +93,7 @@ impl Density {
9593
pub fn to_list_tactic(self) -> ListTactic {
9694
match self {
9795
Density::Compressed => ListTactic::Mixed,
98-
Density::Tall | Density::CompressedIfEmpty => ListTactic::HorizontalVertical,
96+
Density::Tall => ListTactic::HorizontalVertical,
9997
Density::Vertical => ListTactic::Vertical,
10098
}
10199
}

tests/source/configs-fn_args_density-compressed_if_empty.rs

Lines changed: 0 additions & 20 deletions
This file was deleted.

tests/target/configs-fn_args_density-compressed_if_empty.rs

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)