File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ pub enum IndentStyle {
61
61
pub enum Density {
62
62
/// Fit as much on one line as possible.
63
63
Compressed ,
64
- /// Use more lines .
64
+ /// Items are placed horizontally if sufficient space, vertically otherwise .
65
65
Tall ,
66
66
/// Place every item on a separate line.
67
67
Vertical ,
Original file line number Diff line number Diff line change @@ -246,10 +246,7 @@ where
246
246
let total_sep_len = sep. len ( ) * sep_count. saturating_sub ( 1 ) ;
247
247
let real_total = total_width + total_sep_len;
248
248
249
- if real_total <= limit
250
- && !pre_line_comments
251
- && !items. into_iter ( ) . any ( |item| item. as_ref ( ) . is_multiline ( ) )
252
- {
249
+ if real_total <= limit && !items. into_iter ( ) . any ( |item| item. as_ref ( ) . is_multiline ( ) ) {
253
250
DefinitiveListTactic :: Horizontal
254
251
} else {
255
252
match tactic {
You can’t perform that action at this time.
0 commit comments