Skip to content

Commit 1bb3c9e

Browse files
committed
Use config!(tab_spaces) instead of hardcoded 4.
1 parent 21a0f1b commit 1bb3c9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ impl<'a> FmtVisitor<'a> {
379379

380380
// Didn't work. we must force vertical layout and put args on a newline.
381381
if let None = budgets {
382-
let new_indent = indent + 4;
382+
let new_indent = indent + config!(tab_spaces);
383383
let used_space = new_indent + 2; // account for `(` and `)`
384384
let max_space = config!(ideal_width) + config!(leeway);
385385
if used_space > max_space {

0 commit comments

Comments
 (0)