Skip to content

Commit

Permalink
Use config!(tab_spaces) instead of hardcoded 4.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdudziak committed May 26, 2015
1 parent 21a0f1b commit 1bb3c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items.rs
Expand Up @@ -379,7 +379,7 @@ impl<'a> FmtVisitor<'a> {

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

0 comments on commit 1bb3c9e

Please sign in to comment.