We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
write_list
DefinitiveListTactic::SpecialMacro
1 parent 0291331 commit 212a8a3Copy full SHA for 212a8a3
src/lists.rs
@@ -160,7 +160,7 @@ pub enum DefinitiveListTactic {
160
Vertical,
161
Horizontal,
162
Mixed,
163
- // Special case tactic for `format!()`, `write!()` style macros.
+ /// Special case tactic for `format!()`, `write!()` style macros.
164
SpecialMacro(bool, bool, usize),
165
}
166
@@ -325,13 +325,10 @@ where
325
result.push('\n');
326
result.push_str(indent_str);
327
328
- } else if i == num_args_before {
+ } else if i <= num_args_before + 1 {
329
330
331
- } else if i == num_args_before + 1 {
332
- result.push('\n');
333
- result.push_str(indent_str);
334
- } else if i > num_args_before + 1 {
+ } else {
335
if one_line_after {
336
result.push(' ');
337
} else {
0 commit comments